@ygracs/xepg-lib-js 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,199 @@
1
- |***rev.*:**|0.0.15|
1
+ |***rev.*:**|0.1.26|
2
2
  |:---|---:|
3
- |***date***:|2024-10-28|
3
+ |***date***:|2025-03-06|
4
4
 
5
5
  ## Introduction
6
6
 
7
7
  This paper describes a constants and an object classes provided by `xepgdoc-lib.js` module.
8
8
 
9
+ ### Base type definitions
10
+
11
+ This section contains some definitions for a general types of the objects (e.g. options set) that frequently used in a function or a class method descriptions.
12
+
13
+ <a name="typedef+fsoDescr"></a>
14
+ #### `fsoDescr` - descriptor
15
+
16
+ This descriptor is an `object` that describes a status for an operation with some FS-object (*e.g. object such as a file*).
17
+
18
+ | property name | value type | optional | description |
19
+ |:---|---|---:|:---|
20
+ | `isERR` | `boolean` | no | a flag which indicates whether an error was happen |
21
+ | `errCode` | `number` | yes | an error code |
22
+ | `errEvent` | `string` | no | an error event identifier |
23
+ | `errMsg` | `string` | no | an error message |
24
+ | `source` | `string` | no | path to a file |
25
+ | `content` | `any` | no | content |
26
+
27
+ <a name="typedef+xepgProvInfoDesc"></a>
28
+ #### `xepgProvInfoDesc` - descriptor
29
+
30
+ This descriptor is an `object` that describes a content provider.
31
+
32
+ | property name | value type | optional | description |
33
+ |:---|---|---:|:---|
34
+ | `name` | `string` | yes | a provider name |
35
+ | `version` | `string` | yes | a provider version |
36
+ | `schema` | `string` | no | a document schema version |
37
+ | `doctype` | `string` | no | a document type |
38
+
39
+ <a name="typedef+xepgChnInfoDesc"></a>
40
+ #### `xepgChnInfoDesc` - descriptor
41
+
42
+ This descriptor is an `object` that describes a channel info.
43
+
44
+ | property name | value type | optional | description |
45
+ |:---|---|---:|:---|
46
+ | `chnid` | `srting` | no | a channel ID |
47
+ | `chname` | `string` | no | a name of the channel |
48
+ | `chngid` | `string` | yes | a channel 'Group ID' |
49
+ | `srcurl` | `string` | yes | a link to source |
50
+
51
+ <a name="typedef+xepgShedInfoDesc"></a>
52
+ #### `xepgShedInfoDesc` - descriptor
53
+
54
+ This descriptor is an `object` that describes a content provider.
55
+
56
+ | property name | value type | optional | description |
57
+ |:---|---|---:|:---|
58
+ | `time` | `number` | no | a schedule start time |
59
+ | `title` | `string` | no | a schedule title |
60
+ | `cat` | `string` | yes | a schedule category |
61
+ | `pcmark` | `number` | yes | a schedule rating |
62
+ | `descr` | `string` | yes | a schedule description |
63
+
9
64
  ## Module constants
10
65
 
11
66
  ## Module classes
12
67
 
68
+ <a name="TXEpgScheduleItem"></a>
69
+ ### **TXEpgScheduleItem**
70
+
71
+ > since: `v0.0.22`
72
+
73
+ This class provides a functionality for handle an EPG-schedule element.
74
+
75
+ #### class constructor
76
+
77
+ The class constructor creates a new instance of the class.
78
+
79
+ ##### constructor parameters
80
+
81
+ The class constructor receives arguments listed below:
82
+
83
+ | parameter name | value type | default value | description |
84
+ |:---|---|---:|:---|
85
+ |`object`|`object`|---|a host object|
86
+ |`options`|`object`|---|an options settings|
87
+
88
+ #### class properties
89
+
90
+ <a name="TXEpgScheduleItem+time"></a>
91
+ ##### **time**
92
+
93
+ | property type | read only | description |
94
+ |---|---|:---|
95
+ | `number` | yes | contains a schedule start time value as a timestamp |
96
+
97
+ <a name="TXEpgScheduleItem+title"></a>
98
+ ##### **title**
99
+
100
+ | property type | read only | description |
101
+ |---|---|:---|
102
+ | `string` | yes | contains a schedule title |
103
+
104
+ <a name="TXEpgScheduleItem+category"></a>
105
+ ##### **category**
106
+
107
+ | property type | read only | description |
108
+ |---|---|:---|
109
+ | `string` | yes | contains a schedule category |
110
+
111
+ <a name="TXEpgScheduleItem+rating"></a>
112
+ ##### **rating**
113
+
114
+ | property type | read only | description |
115
+ |---|---|:---|
116
+ | `number` | yes | contains a schedule rating value (*aka pcmark*) |
117
+
118
+ <a name="TXEpgScheduleItem+descr"></a>
119
+ ##### **descr**
120
+
121
+ | property type | read only | description |
122
+ |---|---|:---|
123
+ | `string` | yes | contains a schedule description |
124
+
125
+ <a name="TXEpgScheduleItem+dtstype"></a>
126
+ ##### **dtstype**
127
+
128
+ | property type | read only | description |
129
+ |---|---|:---|
130
+ | `number` | yes | contains a "dtstype"-value |
131
+
132
+ <a name="TXEpgScheduleItem+curDocTZ"></a>
133
+ ##### **curDocTZ**
134
+
135
+ | property type | read only | description |
136
+ |---|---|:---|
137
+ | `number` | yes | contains a current TimeZone |
138
+
139
+ #### class methods
140
+
141
+ <a name="TXEpgScheduleItem+getInfo"></a>
142
+ ##### **getInfo()** => `xepgShedInfoDesc`
143
+
144
+ This method returns an object that contains a schedule information.
145
+
146
+ <a name="TXEpgScheduleItem+setTime"></a>
147
+ ##### **setTime(value)** => `boolean`
148
+
149
+ This method tries to set a schedule start time. If succeed `true` returned.
150
+
151
+ | parameter name | value type | default value | description |
152
+ |:---|---|---:|:---|
153
+ | `value` | `number`, `string`, `Date` | --- | some value |
154
+
155
+ <a name="TXEpgScheduleItem+setTitle"></a>
156
+ ##### **setTitle(value)** => `boolean`
157
+
158
+ This method tries to set a schedule title. If succeed `true` returned.
159
+
160
+ | parameter name | value type | default value | description |
161
+ |:---|---|---:|:---|
162
+ | `value` | `string` | --- | some value |
163
+
164
+ <a name="TXEpgScheduleItem+setCategory"></a>
165
+ ##### **setCategory(value)** => `boolean`
166
+
167
+ This method tries to set a schedule category. If succeed `true` returned.
168
+
169
+ | parameter name | value type | default value | description |
170
+ |:---|---|---:|:---|
171
+ | `value` | `string` | --- | some value |
172
+
173
+ <a name="TXEpgScheduleItem+setRating"></a>
174
+ ##### **setRating(value)** => `boolean`
175
+
176
+ This method tries to set a schedule rating. If succeed `true` returned.
177
+
178
+ | parameter name | value type | default value | description |
179
+ |:---|---|---:|:---|
180
+ | `value` | `number`, `string` | --- | some rating value |
181
+
182
+ <a name="TXEpgScheduleItem+setDescr"></a>
183
+ ##### **setDescr(value)** => `boolean`
184
+
185
+ This method tries to set a schedule description. If succeed `true` returned.
186
+
187
+ | parameter name | value type | default value | description |
188
+ |:---|---|---:|:---|
189
+ | `value` | `string` | --- | some value |
190
+
191
+ <a name="TXEpgScheduleItem+saveToXMLString"></a>
192
+ ##### **saveToXMLString()** => `string`
193
+
194
+ This method saves an element content to a string in an XML-format.
195
+
196
+ <a name="TXEpgSchedulesList"></a>
13
197
  ### **TXEpgSchedulesList**
14
198
 
15
199
  This class provides a functionality for handle an EPG-schedules list.
@@ -22,27 +206,42 @@ The class constructor creates a new instance of the class.
22
206
 
23
207
  The class constructor receives arguments listed below:
24
208
 
25
- |name|type|default value|description|
209
+ | parameter name | value type | default value | description |
26
210
  |:---|---|---:|:---|
27
211
  |`object`|`array`|---|a host object|
28
212
  |`options`|`object`|---|an options settings|
29
213
 
30
214
  #### class properties
31
215
 
32
- The table below describes a properties of a `TXEpgSchedulesList` class:
216
+ <a name="TXEpgSchedulesList+schedQty"></a>
217
+ ##### **schedQty**
218
+
219
+ | property type | read only | description |
220
+ |---|---|:---|
221
+ | `number` | yes | contains a quantity of the elements the container holds |
222
+
223
+ <a name="TXEpgSchedulesList+dtstype"></a>
224
+ ##### **dtstype**
33
225
 
34
- |property name|property type|read only|description|
35
- |:---|---|---|:---|
36
- |`schedQty`|`number`|yes|returns a quantity of the elements|
37
- |`dtstype`|`index`|yes|returns a "dtstype"-value|
38
- |`curDocTZ`|`number`|yes|returns a current TimeZone|
226
+ | property type | read only | description |
227
+ |---|---|:---|
228
+ | `number` | yes | contains a "dtstype"-value |
229
+
230
+ <a name="TXEpgSchedulesList+curDocTZ"></a>
231
+ ##### **curDocTZ**
232
+
233
+ | property type | read only | description |
234
+ |---|---|:---|
235
+ | `number` | yes | contains a current TimeZone |
39
236
 
40
237
  #### class methods
41
238
 
239
+ <a name="TXEpgSchedulesList+hasNoSchedules"></a>
42
240
  ##### **hasNoSchedules()** => `boolean`
43
241
 
44
242
  This method returns `true` if a document contains no schedules.
45
243
 
244
+ <a name="TXEpgSchedulesList+hasSchedules"></a>
46
245
  ##### **hasSchedules()** => `boolean`
47
246
 
48
247
  This method returns `true` if a document contains at least one schedule.
@@ -51,17 +250,39 @@ This method returns `true` if a document contains at least one schedule.
51
250
 
52
251
  > WARNING: This method deprecated (*since `v0.0.20`*). Use `chkIndex` instead.
53
252
 
253
+ <a name="TXEpgSchedulesList+chkIndex"></a>
54
254
  ##### **chkIndex(value)** => `boolean`
55
255
 
56
256
  > since: `v0.0.20`
57
257
 
58
258
  This method checks if a given `value` represents a valid schedule index and if so returns `true`.
59
259
 
60
- ##### **getScheduleInfo(index)** => `object`
260
+ | parameter name | value type | default value | description |
261
+ |:---|---|---:|:---|
262
+ | `value` | `number`, `string` | --- | a value to be verified |
263
+
264
+ <a name="TXEpgSchedulesList+schedule"></a>
265
+ ##### **schedule(index)** => `TXEpgScheduleItem`
266
+
267
+ > since: `v0.0.22`
268
+
269
+ This method returns an object that contains a schedule element.
270
+
271
+ | parameter name | value type | default value | description |
272
+ |:---|---|---:|:---|
273
+ | `index` | `number`, `string` | --- | an element index |
274
+
275
+ <a name="TXEpgSchedulesList+getScheduleInfo"></a>
276
+ ##### **getScheduleInfo(index)** => `xepgShedInfoDesc`
61
277
 
62
278
  This method returns an object that contains a schedule information.
63
279
 
64
- ##### **getAllSchedulesInfo()** => `object[]`
280
+ | parameter name | value type | default value | description |
281
+ |:---|---|---:|:---|
282
+ | `index` | `number`, `string` | --- | an element index |
283
+
284
+ <a name="TXEpgSchedulesList+getAllSchedulesInfo"></a>
285
+ ##### **getAllSchedulesInfo()** => `xepgShedInfoDesc[]`
65
286
 
66
287
  This method returns an array that contains an information for all available schedules.
67
288
 
@@ -69,6 +290,7 @@ This method returns an array that contains an information for all available sche
69
290
 
70
291
  ##### **asJSON()**
71
292
 
293
+ <a name="TXEpgProviderContainer"></a>
72
294
  ### **TXEpgProviderContainer**
73
295
 
74
296
  This class implements a structure that holds an information about a program provider within which the content of the document was written.
@@ -94,22 +316,47 @@ The `options` structure is listed below:
94
316
 
95
317
  #### class properties
96
318
 
97
- The table below describes a properties of a `TXEpgProviderContainer` class:
319
+ <a name="TXEpgProviderContainer+name"></a>
320
+ ##### **name**
321
+
322
+ | property type | read only | description |
323
+ |---|---|:---|
324
+ | `string` | no | contains a provider name |
98
325
 
99
- |property name|property type|read only|description|
100
- |:---|---|---|:---|
101
- |`name`|`string`|no|defines a provider name|
102
- |`version`|`string`|no|defines a provider version string|
103
- |`schema`|`string`|no|defines a document schema version|
104
- |`doctype`|`string`|no|defines a document type|
326
+ <a name="TXEpgProviderContainer+version"></a>
327
+ ##### **version**
328
+
329
+ | property type | read only | description |
330
+ |---|---|:---|
331
+ | `string` | no | contains a provider version string |
332
+
333
+ <a name="TXEpgProviderContainer+schema"></a>
334
+ ##### **schema**
335
+
336
+ | property type | read only | description |
337
+ |---|---|:---|
338
+ | `string` | no | contains a document schema version |
339
+
340
+ <a name="TXEpgProviderContainer+doctype"></a>
341
+ ##### **doctype**
342
+
343
+ | property type | read only | description |
344
+ |---|---|:---|
345
+ | `string` | no | contains a document type |
105
346
 
106
347
  #### class methods
107
348
 
349
+ <a name="TXEpgProviderContainer+setName"></a>
108
350
  ##### **setName(value)** => `boolean`
109
351
 
110
352
  This method sets a name of a provider to a given `value`.
111
353
 
112
- ##### **getInfo()** => `object`
354
+ | parameter name | value type | default value | description |
355
+ |:---|---|---:|:---|
356
+ | `value` | `string` | --- | provider name |
357
+
358
+ <a name="TXEpgProviderContainer+getInfo"></a>
359
+ ##### **getInfo()** => `xepgProvInfoDesc`
113
360
 
114
361
  This method returns an `object` that contains information about content provider. An object contains a field listed in the table below:
115
362
 
@@ -120,11 +367,16 @@ This method returns an `object` that contains information about content provider
120
367
  |`schema`|`string`|a document schema version|
121
368
  |`doctype`|`string`|a document type|
122
369
 
123
-
370
+ <a name="TXEpgProviderContainer+setInfo"></a>
124
371
  ##### **setInfo(obj)** => `void`
125
372
 
126
373
  This method loads information about content provider.
127
374
 
375
+ | parameter name | value type | default value | description |
376
+ |:---|---|---:|:---|
377
+ | `obj` | `xepgProvInfoDesc` | --- | provider info descriptor |
378
+
379
+ <a name="TXEpgProviderContainer+saveToXMLString"></a>
128
380
  ##### **saveToXMLString()** => `string`
129
381
 
130
382
  > since: `v0.0.20`
@@ -135,8 +387,86 @@ This method saves an element content to a string.
135
387
 
136
388
  ##### **init()**
137
389
 
390
+ <a name="TXEpgChannelContainer"></a>
391
+ ### **TXEpgChannelContainer**
392
+
393
+ > since: `v0.0.22`
394
+
395
+ This class provides a functionality for handle an EPG-channel element.
396
+
397
+ #### class constructor
398
+
399
+ The class constructor creates a new instance of the class.
400
+
401
+ ##### constructor parameters
402
+
403
+ The class constructor receives arguments listed below:
404
+
405
+ | parameter name | value type | default value | description |
406
+ |:---|---|---:|:---|
407
+ |`object`|`object`|---|a host object|
408
+ |`options`|`object`|---|an options settings|
409
+
410
+ #### class properties
411
+
412
+ <a name="TXEpgChannelContainer+id"></a>
413
+ ##### **id**
414
+
415
+ | property type | read only | description |
416
+ |---|---|:---|
417
+ | `string` | yes | contains a channel ID |
418
+
419
+ <a name="TXEpgChannelContainer+name"></a>
420
+ ##### **name**
421
+
422
+ | property type | read only | description |
423
+ |---|---|:---|
424
+ | `string` | no | contains a channel name |
425
+
426
+ <a name="TXEpgChannelContainer+gid"></a>
427
+ ##### **gid**
428
+
429
+ | property type | read only | description |
430
+ |---|---|:---|
431
+ | `string` | no | contains a channel group ID |
432
+
433
+ <a name="TXEpgChannelContainer+url"></a>
434
+ ##### **url**
435
+
436
+ | property type | read only | description |
437
+ |---|---|:---|
438
+ | `string` | no | contains a channel URL |
439
+
440
+ #### class methods
441
+
442
+ <a name="TXEpgChannelContainer+setID"></a>
443
+ ##### **setID(value)** => `boolean`
444
+
445
+ This method tries to set a channel ID. If succeed `true` returned.
446
+
447
+ | parameter name | value type | default value | description |
448
+ |:---|---|---:|:---|
449
+ | `value` | `string` | --- | some value |
450
+
451
+ <a name="TXEpgChannelContainer+getInfo"></a>
452
+ ##### **getInfo()** => `xepgChnInfoDesc`
453
+
454
+ This method returns a channel info descriptor.
455
+
456
+ <a name="TXEpgChannelContainer+setInfo"></a>
457
+ ##### **setInfo(value)** => `void`
458
+
459
+ This method tries to load a channel info.
460
+
461
+ | parameter name | value type | default value | description |
462
+ |:---|---|---:|:---|
463
+ | `value` | `string`, `xepgChnInfoDesc` | --- | some value |
464
+
465
+ <a name="TXEpgDTSProvider"></a>
138
466
  ### **TXEpgDTSProvider**
139
467
 
468
+ This class provides a functionality for handle a DTS-provider element.
469
+
140
470
  #### class constructor
141
471
 
142
472
  The class constructor creates a new instance of the class.
@@ -158,15 +488,38 @@ The `options` structure is listed below:
158
488
 
159
489
  #### class properties
160
490
 
161
- The table below describes a properties of a `TXEpgDTSProvider` class:
491
+ <a name="TXEpgDTSProvider+dtstype"></a>
492
+ ##### **dtstype**
493
+
494
+ | property type | read only | description |
495
+ |---|---|:---|
496
+ | `number` | no | defines a "dtstype"-value |
497
+
498
+ <a name="TXEpgDTSProvider+curDocTZ"></a>
499
+ ##### **curDocTZ**
500
+
501
+ | property type | read only | description |
502
+ |---|---|:---|
503
+ | `number` | no | defines a current TimeZone |
504
+
505
+ #### class methods
506
+
507
+ <a name="TXEpgDTSProvider+setType"></a>
508
+ ##### **setType(value)** => `boolean`
509
+
510
+ > since: `v0.0.22`
162
511
 
163
- |property name|property type|read only|description|
164
- |:---|---|---|:---|
165
- |`dtstype`|`index`|no|defines a "dtstype"-value|
166
- |`curDocTZ`|`number`|no|defines a current TimeZone|
512
+ This method tries to set a provider type.
167
513
 
514
+ | parameter name | value type | default value | description |
515
+ |:---|---|---:|:---|
516
+ | `value` | `number`, `string` | --- | a "dtstype"-value |
517
+
518
+ <a name="TXEpgHeaderContainer"></a>
168
519
  ### **TXEpgHeaderContainer**
169
520
 
521
+ This class provides a functionality for handle a EPG-header element.
522
+
170
523
  #### class constructor
171
524
 
172
525
  The class constructor creates a new instance of the class.
@@ -188,36 +541,80 @@ The `options` structure is listed below:
188
541
 
189
542
  #### class properties
190
543
 
191
- The table below describes a properties of a `TXEpgHeaderContainer` class:
544
+ <a name="TXEpgHeaderContainer+dts"></a>
545
+ ##### **dts**
192
546
 
193
- |property name|property type|read only|description|
194
- |:---|---|---:|:---|
195
- |`dtstype`|`index`|no|defines a "dtstype"-value|
196
- |`curDocTZ`|`number`|no|defines a current TimeZone|
197
- |`Provider`|`TXEpgProviderContainer`|yes|returns a `TXEpgProviderContainer`|
198
- |`dts`|`TXepgDTSProvider`|yes|returns a `TXEpgDTSProvider`|
547
+ | property type | read only | description |
548
+ |---|---|:---|
549
+ | `TXEpgDTSProvider` | yes | returns a `TXEpgDTSProvider` |
550
+
551
+ <a name="TXEpgHeaderContainer+dtstype"></a>
552
+ ##### **dtstype**
553
+
554
+ | property type | read only | description |
555
+ |---|---|:---|
556
+ | `number` | no | defines a "dtstype"-value |
557
+
558
+ <a name="TXEpgHeaderContainer+curDocTZ"></a>
559
+ ##### **curDocTZ**
560
+
561
+ | property type | read only | description |
562
+ |---|---|:---|
563
+ | `number` | no | defines a current TimeZone |
564
+
565
+ <a name="TXEpgHeaderContainer+Provider"></a>
566
+ ##### **Provider**
567
+
568
+ > \[!] NOTE: `[since v0.0.22]` deprecated. Use (`provider` property)[#TXEpgHeaderContainer+provider] instead.
569
+
570
+ <a name="TXEpgHeaderContainer+provider"></a>
571
+ ##### **provider**
572
+
573
+ > since: `v0.0.22`
574
+
575
+ | property type | read only | description |
576
+ |---|---|:---|
577
+ | `TXEpgProviderContainer` | yes | returns a `TXEpgProviderContainer` instance |
578
+
579
+ <a name="TXEpgHeaderContainer+channel"></a>
580
+ ##### **channel**
581
+
582
+ > since: `v0.0.22`
583
+
584
+ | property type | read only | description |
585
+ |---|---|:---|
586
+ | `TXEpgChannelContainer` | yes | returns a `TXEpgChannelContainer` instance |
199
587
 
200
588
  #### class methods
201
589
 
590
+ <a name="TXEpgHeaderContainer+getDocumentDT"></a>
202
591
  ##### **getDocumentDT()** => `number`
203
592
 
204
593
  This method returns a time value of a document creation as a timestamp.
205
594
 
595
+ <a name="TXEpgHeaderContainer+setDocumentDT"></a>
206
596
  ##### **setDocumentDT()** => `void`
207
597
 
208
598
  This method sets a time value of a document creation.
209
599
 
600
+ <a name="TXEpgHeaderContainer+getDocumentEDT"></a>
210
601
  ##### **getDocumentEDT()** => `number`
211
602
 
212
603
  This method returns a time value from which a document is expired as a timestamp.
213
604
 
605
+ <a name="TXEpgHeaderContainer+setDocumentEDT"></a>
214
606
  ##### **setDocumentEDT(value)** => `void`
215
607
 
216
608
  This method sets a time value at which a document will be expired.
217
609
 
218
- ##### **getChannelInfo()** => `object`
610
+ | parameter name | value type | default value | description |
611
+ |:---|---|---:|:---|
612
+ | `value` | `number`, `string`, `Date` | --- | document expire time |
613
+
614
+ <a name="TXEpgHeaderContainer+getChannelInfo"></a>
615
+ ##### **getChannelInfo()** => `xepgChnInfoDesc`
219
616
 
220
- This method returns an object which contains a channel information.
617
+ This method returns an `object` which contains a channel information.
221
618
 
222
619
  An object contains the following fields:
223
620
 
@@ -228,10 +625,19 @@ An object contains the following fields:
228
625
  |`chname`|`string`|a name of the channel|
229
626
  |`srcurl`|`string`|a link to source|
230
627
 
628
+ <a name="TXEpgHeaderContainer+setChannelInfo"></a>
231
629
  ##### **setChannelInfo(obj)** => `void`
232
630
 
631
+ > \[!] WARNING: `[since v0.0.22]` deprecated.
632
+
233
633
  This method fills a channel information with a given data.
234
634
 
635
+ | parameter name | value type | default value | description |
636
+ |:---|---|---:|:---|
637
+ | `obj` | `xepgChnInfoDesc` | --- | channel info descriptor |
638
+
639
+ > \[!] NOTE: `[since v0.0.21]` a use of a `string` or `array` types a as values of an `obj` are deprecated and will be dropped soon.
640
+
235
641
  The `obj` parameter can be a string or an array or an object.
236
642
 
237
643
  If a string is given it mean to contains the `chnid` value.
@@ -249,18 +655,21 @@ If an object is given it contains the following fields:
249
655
  |`chngid`|`string`|a channel group|
250
656
  |`srcurl`|`string`|a link to source|
251
657
 
252
- ##### **getProviderInfo()** => `object`
658
+ <a name="TXEpgHeaderContainer+getProviderInfo"></a>
659
+ ##### **getProviderInfo()** => `xepgProvInfoDesc`
253
660
 
254
661
  This method returns an object which contains an information about document provider.
255
662
 
256
663
  ##### **setProviderInfo(obj)**
257
664
 
665
+ <a name="TXEpgHeaderContainer+saveToXMLString"></a>
258
666
  ##### **saveToXMLString()** => `string`
259
667
 
260
668
  > since: `v0.0.20`
261
669
 
262
670
  This method saves an element content to a string.
263
671
 
672
+ <a name="TXEpgContentProvider"></a>
264
673
  ### **TXEpgContentProvider**
265
674
 
266
675
  #### class constructor
@@ -284,50 +693,107 @@ The `options` structure is listed below:
284
693
 
285
694
  #### class properties
286
695
 
287
- The table below describes a properties of a `TXEpgContentProvider` class:
696
+ <a name="TXEpgContentProvider+Header"></a>
697
+ ##### **Header**
698
+
699
+ > \[!] NOTE: `[since v0.0.22]` deprecated. Use (`header` property)[#TXEpgContentProvider+header] instead.
700
+
701
+ <a name="TXEpgContentProvider+header"></a>
702
+ ##### **header**
703
+
704
+ > since: `v0.0.22`
288
705
 
289
- |property name|property type|read only|description|
290
- |:---|---|---|:---|
291
- |`Header`|`TXEpgHeaderContainer`|yes|returns a `TXEpgHeaderContainer`|
292
- |`Provider`|`TXEpgProviderContainer`|yes|returns a `TXEpgProviderContainer`|
293
- |`SchedulesList`|`TXEpgSchedulesList`|yes|returns a `TXEpgSchedulesList`|
294
- |`dts`|`TXEpgDTSProvider`|yes|returns a `TXEpgDTSProvider`|
706
+ | property type | read only | description |
707
+ |---|---|:---|
708
+ | `TXEpgHeaderContainer` | yes | returns a `TXEpgHeaderContainer` instance |
709
+
710
+ <a name="TXEpgContentProvider+Provider"></a>
711
+ ##### **Provider**
712
+
713
+ > \[!] NOTE: `[since v0.0.22]` deprecated. Use (`provider` property)[#TXEpgContentProvider+provider] instead.
714
+
715
+ <a name="TXEpgContentProvider+provider"></a>
716
+ ##### **provider**
717
+
718
+ > since: `v0.0.22`
719
+
720
+ | property type | read only | description |
721
+ |---|---|:---|
722
+ | `TXEpgProviderContainer` | yes | returns a `TXEpgProviderContainer` instance |
723
+
724
+ <a name="TXEpgContentProvider+dts"></a>
725
+ ##### **dts**
726
+
727
+ | property type | read only | description |
728
+ |---|---|:---|
729
+ | `TXEpgDTSProvider` | yes | returns a `TXEpgDTSProvider` instance |
730
+
731
+ <a name="TXEpgContentProvider+SchedulesList"></a>
732
+ ##### **SchedulesList**
733
+
734
+ | property type | read only | description |
735
+ |---|---|:---|
736
+ | `TXEpgSchedulesList` | yes | returns a `TXEpgSchedulesList` instance |
295
737
 
296
738
  #### class methods
297
739
 
740
+ <a name="TXEpgContentProvider+saveToXMLString"></a>
741
+ ##### **saveToXMLString()** => `string`
742
+
743
+ This method saves a document content to a string.
744
+
745
+ <a name="TXEpgContentProvider+saveToFileSync"></a>
746
+ ##### **saveToFileSync(src)** => `fsoDescr`
747
+
748
+ This method saves a document content into a file addressed by `src`.
749
+
750
+ | parameter name | value type | default value | description |
751
+ |:---|---|---:|:---|
752
+ | `src` | `string` | --- | path to a file |
753
+
298
754
  ##### **loadFromString(xmlString, options)** => `boolean`
299
755
 
300
756
  > WARNING: This method deprecated (*since `v0.0.18`*). Use `loadFromXMLString` instead.
301
757
 
302
- ##### **loadFromXMLString(xmlString, options)** => `boolean`
758
+ <a name="TXEpgContentProvider+loadFromXMLString"></a>
759
+ ##### **loadFromXMLString(str)** => `boolean`
303
760
 
304
761
  > since: `v0.0.18`
305
762
 
306
- This method loads a document content from string containing text in XML format.
307
-
308
- ##### **loadFromFile(src)** => `object`
763
+ This method loads a document content from a string given by `str`.
309
764
 
310
- This method loads a document content from a file. A `src` provided a string that is a path to the file.
765
+ | parameter name | value type | default value | description |
766
+ |:---|---|---:|:---|
767
+ | `str` | `string` | --- | some content |
311
768
 
312
- ##### **loadFromFileSync(src)** => `object`
769
+ <a name="TXEpgContentProvider+loadFromFileSync"></a>
770
+ ##### **loadFromFileSync(src)** => `fsoDescr`
313
771
 
314
- This method loads a document content from a file. A `src` provided a string that is a path to the file.
772
+ This method loads a document content from a file addressed by `src`.
315
773
 
316
- ##### **saveToXMLString()** => `string`
774
+ | parameter name | value type | default value | description |
775
+ |:---|---|---:|:---|
776
+ | `src` | `string` | --- | path to a file |
317
777
 
318
- This method saves a document content to a string.
778
+ #### class methods (*async*)
319
779
 
320
- ##### **saveToFile(src)** => `object`
780
+ <a name="TXEpgContentProvider+saveToFile"></a>
781
+ ##### **saveToFile(src)** => `Promise<fsoDescr, Error>`
321
782
 
322
- This method saves a document content to a file. A `src` provided a string that is a path to the file.
783
+ This method saves a document content into a file addressed by `src`.
323
784
 
324
- ##### **saveToFileSync(src)** => `object`
785
+ | parameter name | value type | default value | description |
786
+ |:---|---|---:|:---|
787
+ | `src` | `string` | --- | path to a file |
325
788
 
326
- This method saves a document content to a file. A `src` provided a string that is a path to the file.
789
+ <a name="TXEpgContentProvider+loadFromFile"></a>
790
+ ##### **loadFromFile(src)** => `Promise<fsoDescr, Error>`
327
791
 
328
- ##### **asXML(options)**
792
+ This method loads a document content from a file addressed by `src`.
329
793
 
330
- > WARNING: This method deprecated (*since `v0.0.18`*). Use `saveToXMLString` instead.
794
+ | parameter name | value type | default value | description |
795
+ |:---|---|---:|:---|
796
+ | `src` | `string` | --- | path to a file |
331
797
 
332
798
  #### class methods (*special*)
333
799