@@ -33,6 +33,7 @@ public class CreateCallRequest
3333 private string disconnectUrl ;
3434 private Models . DisconnectMethodEnum ? disconnectMethod ;
3535 private string tag ;
36+ private int ? priority ;
3637 private Dictionary < string , bool > shouldSerialize = new Dictionary < string , bool >
3738 {
3839 { "uui" , false } ,
@@ -48,6 +49,7 @@ public class CreateCallRequest
4849 { "disconnectUrl" , false } ,
4950 { "disconnectMethod" , false } ,
5051 { "tag" , false } ,
52+ { "priority" , false } ,
5153 } ;
5254
5355 /// <summary>
@@ -78,6 +80,7 @@ public CreateCallRequest()
7880 /// <param name="disconnectMethod">disconnectMethod.</param>
7981 /// <param name="tag">tag.</param>
8082 /// <param name="machineDetection">machineDetection.</param>
83+ /// <param name="priority">priority.</param>
8184 public CreateCallRequest (
8285 string from ,
8386 string to ,
@@ -96,7 +99,8 @@ public CreateCallRequest(
9699 string disconnectUrl = null ,
97100 Models . DisconnectMethodEnum ? disconnectMethod = null ,
98101 string tag = null ,
99- Models . MachineDetectionConfiguration machineDetection = null )
102+ Models . MachineDetectionConfiguration machineDetection = null ,
103+ int ? priority = null )
100104 {
101105 this . From = from ;
102106 this . To = to ;
@@ -168,6 +172,11 @@ public CreateCallRequest(
168172
169173 this . ApplicationId = applicationId ;
170174 this . MachineDetection = machineDetection ;
175+
176+ if ( priority != null )
177+ {
178+ this . Priority = priority ;
179+ }
171180 }
172181
173182 /// <summary>
@@ -422,6 +431,24 @@ public string Tag
422431 }
423432 }
424433
434+ /// <summary>
435+ /// Gets or sets Priority.
436+ /// </summary>
437+ [ JsonProperty ( "priority" ) ]
438+ public int ? Priority
439+ {
440+ get
441+ {
442+ return this . priority ;
443+ }
444+
445+ set
446+ {
447+ this . shouldSerialize [ "priority" ] = true ;
448+ this . priority = value ;
449+ }
450+ }
451+
425452 /// <summary>
426453 /// Gets or sets ApplicationId.
427454 /// </summary>
@@ -548,6 +575,14 @@ public void UnsetTag()
548575 this . shouldSerialize [ "tag" ] = false ;
549576 }
550577
578+ /// <summary>
579+ /// Marks the field to not be serailized.
580+ /// </summary>
581+ public void UnsetPriority ( )
582+ {
583+ this . shouldSerialize [ "priority" ] = false ;
584+ }
585+
551586 /// <summary>
552587 /// Checks if the field should be serialized or not.
553588 /// </summary>
@@ -665,6 +700,15 @@ public bool ShouldSerializeTag()
665700 return this . shouldSerialize [ "tag" ] ;
666701 }
667702
703+ /// <summary>
704+ /// Checks if the field should be serialized or not.
705+ /// </summary>
706+ /// <returns>A boolean weather the field should be serialized or not.</returns>
707+ public bool ShouldSerializePriority ( )
708+ {
709+ return this . shouldSerialize [ "priority" ] ;
710+ }
711+
668712 /// <inheritdoc/>
669713 public override bool Equals ( object obj )
670714 {
@@ -696,7 +740,8 @@ public override bool Equals(object obj)
696740 ( ( this . DisconnectMethod == null && other . DisconnectMethod == null ) || ( this . DisconnectMethod ? . Equals ( other . DisconnectMethod ) == true ) ) &&
697741 ( ( this . Tag == null && other . Tag == null ) || ( this . Tag ? . Equals ( other . Tag ) == true ) ) &&
698742 ( ( this . ApplicationId == null && other . ApplicationId == null ) || ( this . ApplicationId ? . Equals ( other . ApplicationId ) == true ) ) &&
699- ( ( this . MachineDetection == null && other . MachineDetection == null ) || ( this . MachineDetection ? . Equals ( other . MachineDetection ) == true ) ) ;
743+ ( ( this . MachineDetection == null && other . MachineDetection == null ) || ( this . MachineDetection ? . Equals ( other . MachineDetection ) == true ) ) &&
744+ ( ( this . Priority == null && other . Priority == null ) || ( this . Priority ? . Equals ( other . Priority ) == true ) ) ;
700745 }
701746
702747 /// <inheritdoc/>
@@ -794,6 +839,11 @@ public override int GetHashCode()
794839 hashCode += this . MachineDetection . GetHashCode ( ) ;
795840 }
796841
842+ if ( this . Priority != null )
843+ {
844+ hashCode += this . Priority . GetHashCode ( ) ;
845+ }
846+
797847 return hashCode ;
798848 }
799849
@@ -821,6 +871,7 @@ protected void ToString(List<string> toStringOutput)
821871 toStringOutput . Add ( $ "this.Tag = { ( this . Tag == null ? "null" : this . Tag == string . Empty ? "" : this . Tag ) } ") ;
822872 toStringOutput . Add ( $ "this.ApplicationId = { ( this . ApplicationId == null ? "null" : this . ApplicationId == string . Empty ? "" : this . ApplicationId ) } ") ;
823873 toStringOutput . Add ( $ "this.MachineDetection = { ( this . MachineDetection == null ? "null" : this . MachineDetection . ToString ( ) ) } ") ;
874+ toStringOutput . Add ( $ "this.Priority = { ( this . Priority == null ? "null" : this . Priority . ToString ( ) ) } ") ;
824875 }
825876 }
826- }
877+ }
0 commit comments