Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XapiAgentGroup" /> class.
 /// </summary>
 /// <param name="ObjectType">ObjectType (required).</param>
 /// <param name="Name">Name.</param>
 /// <param name="Mbox">Mbox.</param>
 /// <param name="MboxSha1sum">MboxSha1sum.</param>
 /// <param name="Openid">Openid.</param>
 /// <param name="Account">Account.</param>
 /// <param name="Member">Member.</param>
 public XapiAgentGroup(ObjectTypeEnum?ObjectType = default(ObjectTypeEnum?), string Name = default(string), string Mbox = default(string), string MboxSha1sum = default(string), string Openid = default(string), XapiAccount Account = default(XapiAccount), List <XapiAgentGroup> Member = default(List <XapiAgentGroup>))
 {
     // to ensure "ObjectType" is required (not null)
     if (ObjectType == null)
     {
         throw new InvalidDataException("ObjectType is a required property for XapiAgentGroup and cannot be null");
     }
     else
     {
         this.ObjectType = ObjectType;
     }
     this.Name        = Name;
     this.Mbox        = Mbox;
     this.MboxSha1sum = MboxSha1sum;
     this.Openid      = Openid;
     this.Account     = Account;
     this.Member      = Member;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XapiAgentGroup" /> class.
 /// </summary>
 /// <param name="objectType">objectType (required).</param>
 /// <param name="name">name.</param>
 /// <param name="mbox">mbox.</param>
 /// <param name="mboxSha1sum">mboxSha1sum.</param>
 /// <param name="openid">openid.</param>
 /// <param name="account">account.</param>
 /// <param name="member">member.</param>
 public XapiAgentGroup(ObjectTypeEnum objectType = default(ObjectTypeEnum), string name = default(string), string mbox = default(string), string mboxSha1sum = default(string), string openid = default(string), XapiAccount account = default(XapiAccount), List <XapiAgentGroup> member = default(List <XapiAgentGroup>))
 {
     // to ensure "objectType" is required (not null)
     if (objectType == null)
     {
         throw new InvalidDataException("objectType is a required property for XapiAgentGroup and cannot be null");
     }
     else
     {
         this.ObjectType = objectType;
     }
     this.Name        = name;
     this.Mbox        = mbox;
     this.MboxSha1sum = mboxSha1sum;
     this.Openid      = openid;
     this.Account     = account;
     this.Member      = member;
 }