Class: PureCloud::AnalyticsSession

Inherits:
Object
  • Object
show all
Defined in:
lib/purecloudclient_v2a/models/analytics_session.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AnalyticsSession

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 282

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  
  if attributes.has_key?(:'mediaType')
    
    
    self.media_type = attributes[:'mediaType']
    
  
  end

  
  if attributes.has_key?(:'sessionId')
    
    
    self.session_id = attributes[:'sessionId']
    
  
  end

  
  if attributes.has_key?(:'addressOther')
    
    
    self.address_other = attributes[:'addressOther']
    
  
  end

  
  if attributes.has_key?(:'addressSelf')
    
    
    self.address_self = attributes[:'addressSelf']
    
  
  end

  
  if attributes.has_key?(:'addressFrom')
    
    
    self.address_from = attributes[:'addressFrom']
    
  
  end

  
  if attributes.has_key?(:'addressTo')
    
    
    self.address_to = attributes[:'addressTo']
    
  
  end

  
  if attributes.has_key?(:'messageType')
    
    
    self.message_type = attributes[:'messageType']
    
  
  end

  
  if attributes.has_key?(:'ani')
    
    
    self.ani = attributes[:'ani']
    
  
  end

  
  if attributes.has_key?(:'direction')
    
    
    self.direction = attributes[:'direction']
    
  
  end

  
  if attributes.has_key?(:'dnis')
    
    
    self.dnis = attributes[:'dnis']
    
  
  end

  
  if attributes.has_key?(:'outboundCampaignId')
    
    
    self.outbound_campaign_id = attributes[:'outboundCampaignId']
    
  
  end

  
  if attributes.has_key?(:'outboundContactId')
    
    
    self.outbound_contact_id = attributes[:'outboundContactId']
    
  
  end

  
  if attributes.has_key?(:'outboundContactListId')
    
    
    self.outbound_contact_list_id = attributes[:'outboundContactListId']
    
  
  end

  
  if attributes.has_key?(:'dispositionAnalyzer')
    
    
    self.disposition_analyzer = attributes[:'dispositionAnalyzer']
    
  
  end

  
  if attributes.has_key?(:'dispositionName')
    
    
    self.disposition_name = attributes[:'dispositionName']
    
  
  end

  
  if attributes.has_key?(:'edgeId')
    
    
    self.edge_id = attributes[:'edgeId']
    
  
  end

  
  if attributes.has_key?(:'remoteNameDisplayable')
    
    
    self.remote_name_displayable = attributes[:'remoteNameDisplayable']
    
  
  end

  
  if attributes.has_key?(:'roomId')
    
    
    self.room_id = attributes[:'roomId']
    
  
  end

  
  if attributes.has_key?(:'monitoredSessionId')
    
    
    self.monitored_session_id = attributes[:'monitoredSessionId']
    
  
  end

  
  if attributes.has_key?(:'monitoredParticipantId')
    
    
    self.monitored_participant_id = attributes[:'monitoredParticipantId']
    
  
  end

  
  if attributes.has_key?(:'callbackUserName')
    
    
    self.callback_user_name = attributes[:'callbackUserName']
    
  
  end

  
  if attributes.has_key?(:'callbackNumbers')
    
    if (value = attributes[:'callbackNumbers']).is_a?(Array)
      self.callback_numbers = value
    end
    
    
  
  end

  
  if attributes.has_key?(:'callbackScheduledTime')
    
    
    self.callback_scheduled_time = attributes[:'callbackScheduledTime']
    
  
  end

  
  if attributes.has_key?(:'scriptId')
    
    
    self.script_id = attributes[:'scriptId']
    
  
  end

  
  if attributes.has_key?(:'peerId')
    
    
    self.peer_id = attributes[:'peerId']
    
  
  end

  
  if attributes.has_key?(:'skipEnabled')
    
    
    self.skip_enabled = attributes[:'skipEnabled']
    
  
  end

  
  if attributes.has_key?(:'timeoutSeconds')
    
    
    self.timeout_seconds = attributes[:'timeoutSeconds']
    
  
  end

  
  if attributes.has_key?(:'cobrowseRole')
    
    
    self.cobrowse_role = attributes[:'cobrowseRole']
    
  
  end

  
  if attributes.has_key?(:'cobrowseRoomId')
    
    
    self.cobrowse_room_id = attributes[:'cobrowseRoomId']
    
  
  end

  
  if attributes.has_key?(:'mediaBridgeId')
    
    
    self.media_bridge_id = attributes[:'mediaBridgeId']
    
  
  end

  
  if attributes.has_key?(:'screenShareAddressSelf')
    
    
    self.screen_share_address_self = attributes[:'screenShareAddressSelf']
    
  
  end

  
  if attributes.has_key?(:'sharingScreen')
    
    
    self.sharing_screen = attributes[:'sharingScreen']
    
  
  end

  
  if attributes.has_key?(:'screenShareRoomId')
    
    
    self.screen_share_room_id = attributes[:'screenShareRoomId']
    
  
  end

  
  if attributes.has_key?(:'videoRoomId')
    
    
    self.video_room_id = attributes[:'videoRoomId']
    
  
  end

  
  if attributes.has_key?(:'videoAddressSelf')
    
    
    self.video_address_self = attributes[:'videoAddressSelf']
    
  
  end

  
  if attributes.has_key?(:'segments')
    
    if (value = attributes[:'segments']).is_a?(Array)
      self.segments = value
    end
    
    
  
  end

  
end

Instance Attribute Details

#address_fromObject

Returns the value of attribute address_from.



31
32
33
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 31

def address_from
  @address_from
end

#address_otherObject

Returns the value of attribute address_other.



27
28
29
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 27

def address_other
  @address_other
end

#address_selfObject

Returns the value of attribute address_self.



29
30
31
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 29

def address_self
  @address_self
end

#address_toObject

Returns the value of attribute address_to.



33
34
35
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 33

def address_to
  @address_to
end

#aniObject

Automatic Number Identification (caller’s number)



39
40
41
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 39

def ani
  @ani
end

#callback_numbersObject

List of numbers to callback



79
80
81
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 79

def callback_numbers
  @callback_numbers
end

#callback_scheduled_timeObject

Scheduled callback date/time. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ



82
83
84
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 82

def callback_scheduled_time
  @callback_scheduled_time
end

#callback_user_nameObject

The name of the user requesting a call back



76
77
78
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 76

def callback_user_name
  @callback_user_name
end

#cobrowse_roleObject

Describe side of the cobrowse (sharer or viewer)



97
98
99
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 97

def cobrowse_role
  @cobrowse_role
end

#cobrowse_room_idObject

A unique identifier for a PureCloud Cobrowse room.



100
101
102
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 100

def cobrowse_room_id
  @cobrowse_room_id
end

#directionObject

Direction



42
43
44
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 42

def direction
  @direction
end

#disposition_analyzerObject

(Dialer) Unique identifier of the contact list that this contact belongs to



57
58
59
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 57

def disposition_analyzer
  @disposition_analyzer
end

#disposition_nameObject

(Dialer) Result of the analysis (for example disposition.classification.callable.machine) 



60
61
62
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 60

def disposition_name
  @disposition_name
end

#dnisObject

Automatic Number Identification (caller’s number)



45
46
47
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 45

def dnis
  @dnis
end

#edge_idObject

Unique identifier of the edge device



63
64
65
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 63

def edge_id
  @edge_id
end

#media_bridge_idObject

Returns the value of attribute media_bridge_id.



102
103
104
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 102

def media_bridge_id
  @media_bridge_id
end

#media_typeObject

The session media type



22
23
24
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 22

def media_type
  @media_type
end

#message_typeObject

Message type for messaging services such as sms



36
37
38
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 36

def message_type
  @message_type
end

#monitored_participant_idObject

Returns the value of attribute monitored_participant_id.



73
74
75
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 73

def monitored_participant_id
  @monitored_participant_id
end

#monitored_session_idObject

The sessionID being monitored



71
72
73
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 71

def monitored_session_id
  @monitored_session_id
end

#outbound_campaign_idObject

(Dialer) Unique identifier of the outbound campaign



48
49
50
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 48

def outbound_campaign_id
  @outbound_campaign_id
end

#outbound_contact_idObject

(Dialer) Unique identifier of the contact



51
52
53
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 51

def outbound_contact_id
  @outbound_contact_id
end

#outbound_contact_list_idObject

(Dialer) Unique identifier of the contact list that this contact belongs to



54
55
56
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 54

def outbound_contact_list_id
  @outbound_contact_list_id
end

#peer_idObject

A unique identifier for a peer



88
89
90
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 88

def peer_id
  @peer_id
end

#remote_name_displayableObject

Returns the value of attribute remote_name_displayable.



65
66
67
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 65

def remote_name_displayable
  @remote_name_displayable
end

#room_idObject

Unique identifier for the room



68
69
70
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 68

def room_id
  @room_id
end

#screen_share_address_selfObject

Direct ScreenShare address



105
106
107
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 105

def screen_share_address_self
  @screen_share_address_self
end

#screen_share_room_idObject

A unique identifier for a PureCloud ScreenShare room.



111
112
113
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 111

def screen_share_room_id
  @screen_share_room_id
end

#script_idObject

Scheduled callback date/time, Date time is represented as an ISO-8601 string. 



85
86
87
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 85

def script_id
  @script_id
end

#segmentsObject

List of segments for this session



120
121
122
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 120

def segments
  @segments
end

#session_idObject

The unique identifier of this session



25
26
27
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 25

def session_id
  @session_id
end

#sharing_screenObject

Flag determining if screenShare is started or not (true/false)



108
109
110
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 108

def sharing_screen
  @sharing_screen
end

#skip_enabledObject

(Dialer) Whether the agent can skip the dialer contact



91
92
93
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 91

def skip_enabled
  @skip_enabled
end

#timeout_secondsObject

The number of seconds before PureCloud begins the call for a call back. 0 disables automatic calling



94
95
96
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 94

def timeout_seconds
  @timeout_seconds
end

#video_address_selfObject

Direct Video address



117
118
119
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 117

def video_address_self
  @video_address_self
end

#video_room_idObject

A unique identifier for a PureCloud video room.



114
115
116
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 114

def video_room_id
  @video_room_id
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 123

def self.attribute_map
  {
    
    :'media_type' => :'mediaType',
    
    :'session_id' => :'sessionId',
    
    :'address_other' => :'addressOther',
    
    :'address_self' => :'addressSelf',
    
    :'address_from' => :'addressFrom',
    
    :'address_to' => :'addressTo',
    
    :'message_type' => :'messageType',
    
    :'ani' => :'ani',
    
    :'direction' => :'direction',
    
    :'dnis' => :'dnis',
    
    :'outbound_campaign_id' => :'outboundCampaignId',
    
    :'outbound_contact_id' => :'outboundContactId',
    
    :'outbound_contact_list_id' => :'outboundContactListId',
    
    :'disposition_analyzer' => :'dispositionAnalyzer',
    
    :'disposition_name' => :'dispositionName',
    
    :'edge_id' => :'edgeId',
    
    :'remote_name_displayable' => :'remoteNameDisplayable',
    
    :'room_id' => :'roomId',
    
    :'monitored_session_id' => :'monitoredSessionId',
    
    :'monitored_participant_id' => :'monitoredParticipantId',
    
    :'callback_user_name' => :'callbackUserName',
    
    :'callback_numbers' => :'callbackNumbers',
    
    :'callback_scheduled_time' => :'callbackScheduledTime',
    
    :'script_id' => :'scriptId',
    
    :'peer_id' => :'peerId',
    
    :'skip_enabled' => :'skipEnabled',
    
    :'timeout_seconds' => :'timeoutSeconds',
    
    :'cobrowse_role' => :'cobrowseRole',
    
    :'cobrowse_room_id' => :'cobrowseRoomId',
    
    :'media_bridge_id' => :'mediaBridgeId',
    
    :'screen_share_address_self' => :'screenShareAddressSelf',
    
    :'sharing_screen' => :'sharingScreen',
    
    :'screen_share_room_id' => :'screenShareRoomId',
    
    :'video_room_id' => :'videoRoomId',
    
    :'video_address_self' => :'videoAddressSelf',
    
    :'segments' => :'segments'
    
  }
end

.swagger_typesObject

Attribute type mapping.



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 202

def self.swagger_types
  {
    
    :'media_type' => :'String',
    
    :'session_id' => :'String',
    
    :'address_other' => :'String',
    
    :'address_self' => :'String',
    
    :'address_from' => :'String',
    
    :'address_to' => :'String',
    
    :'message_type' => :'String',
    
    :'ani' => :'String',
    
    :'direction' => :'String',
    
    :'dnis' => :'String',
    
    :'outbound_campaign_id' => :'String',
    
    :'outbound_contact_id' => :'String',
    
    :'outbound_contact_list_id' => :'String',
    
    :'disposition_analyzer' => :'String',
    
    :'disposition_name' => :'String',
    
    :'edge_id' => :'String',
    
    :'remote_name_displayable' => :'String',
    
    :'room_id' => :'String',
    
    :'monitored_session_id' => :'String',
    
    :'monitored_participant_id' => :'String',
    
    :'callback_user_name' => :'String',
    
    :'callback_numbers' => :'Array<String>',
    
    :'callback_scheduled_time' => :'DateTime',
    
    :'script_id' => :'String',
    
    :'peer_id' => :'String',
    
    :'skip_enabled' => :'BOOLEAN',
    
    :'timeout_seconds' => :'Integer',
    
    :'cobrowse_role' => :'String',
    
    :'cobrowse_room_id' => :'String',
    
    :'media_bridge_id' => :'String',
    
    :'screen_share_address_self' => :'String',
    
    :'sharing_screen' => :'BOOLEAN',
    
    :'screen_share_room_id' => :'String',
    
    :'video_room_id' => :'String',
    
    :'video_address_self' => :'String',
    
    :'segments' => :'Array<AnalyticsConversationSegment>'
    
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1017

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      media_type == o.media_type &&
      session_id == o.session_id &&
      address_other == o.address_other &&
      address_self == o.address_self &&
      address_from == o.address_from &&
      address_to == o.address_to &&
      message_type == o.message_type &&
      ani == o.ani &&
      direction == o.direction &&
      dnis == o.dnis &&
      outbound_campaign_id == o.outbound_campaign_id &&
      outbound_contact_id == o.outbound_contact_id &&
      outbound_contact_list_id == o.outbound_contact_list_id &&
      disposition_analyzer == o.disposition_analyzer &&
      disposition_name == o.disposition_name &&
      edge_id == o.edge_id &&
      remote_name_displayable == o.remote_name_displayable &&
      room_id == o.room_id &&
      monitored_session_id == o.monitored_session_id &&
      monitored_participant_id == o.monitored_participant_id &&
      callback_user_name == o.callback_user_name &&
      callback_numbers == o.callback_numbers &&
      callback_scheduled_time == o.callback_scheduled_time &&
      script_id == o.script_id &&
      peer_id == o.peer_id &&
      skip_enabled == o.skip_enabled &&
      timeout_seconds == o.timeout_seconds &&
      cobrowse_role == o.cobrowse_role &&
      cobrowse_room_id == o.cobrowse_room_id &&
      media_bridge_id == o.media_bridge_id &&
      screen_share_address_self == o.screen_share_address_self &&
      sharing_screen == o.sharing_screen &&
      screen_share_room_id == o.screen_share_room_id &&
      video_room_id == o.video_room_id &&
      video_address_self == o.video_address_self &&
      segments == o.segments
end

#_deserialize(type, value) ⇒ Object



1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1090

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /^(true|t|yes|y|1)$/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    _model = Object.const_get("PureCloud").const_get(type).new
    _model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Object

Method to output non-array value in the form of hash For object, use to_hash. Otherwise, just return the value



1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1150

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

build the object from hash



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1071

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      else
        #TODO show warning in debug mode
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    else
      # data not found in attributes(hash), not an issue as the data can be optional
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1060
1061
1062
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1060

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1066
1067
1068
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1066

def hash
  [media_type, session_id, address_other, address_self, address_from, address_to, message_type, ani, direction, dnis, outbound_campaign_id, outbound_contact_id, outbound_contact_list_id, disposition_analyzer, disposition_name, edge_id, remote_name_displayable, room_id, monitored_session_id, monitored_participant_id, callback_user_name, callback_numbers, callback_scheduled_time, script_id, peer_id, skip_enabled, timeout_seconds, cobrowse_role, cobrowse_room_id, media_bridge_id, screen_share_address_self, sharing_screen, screen_share_room_id, video_room_id, video_address_self, segments].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



621
622
623
624
625
626
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 621

def list_invalid_properties
  invalid_properties = Array.new
  
  
  return invalid_properties
end

#to_bodyObject

to_body is an alias to to_body (backward compatibility))



1133
1134
1135
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1133

def to_body
  to_hash
end

#to_hashObject

return the object in the form of hash



1138
1139
1140
1141
1142
1143
1144
1145
1146
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1138

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sObject



1128
1129
1130
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 1128

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
# File 'lib/purecloudclient_v2a/models/analytics_session.rb', line 630

def valid?
  
  
  
  allowed_values = ["voice", "chat", "email", "callback", "cobrowse", "video", "screenshare", "message"]
  if @media_type && !allowed_values.include?(@media_type)
    return false
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  allowed_values = ["sms"]
  if @message_type && !allowed_values.include?(@message_type)
    return false
  end
  
  
  
  
  
  
  
  
  
  allowed_values = ["inbound", "outbound"]
  if @direction && !allowed_values.include?(@direction)
    return false
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  allowed_values = ["disconnect", "person", "busy", "machine", "noanswer", "fax", "sit"]
  if @disposition_name && !allowed_values.include?(@disposition_name)
    return false
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
end