コード例 #1
0
 public ESearchGroupUserItem(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = (EsearchGroupUserFieldName)StringEnum.Parse(typeof(EsearchGroupUserFieldName), node["fieldName"].Value <string>());
     }
     if (node["creationMode"] != null)
     {
         this._CreationMode = (GroupUserCreationMode)ParseEnum(typeof(GroupUserCreationMode), node["creationMode"].Value <string>());
     }
 }
コード例 #2
0
 public GroupUser(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = node["id"].Value <string>();
     }
     if (node["userId"] != null)
     {
         this._UserId = node["userId"].Value <string>();
     }
     if (node["groupId"] != null)
     {
         this._GroupId = node["groupId"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (GroupUserStatus)ParseEnum(typeof(GroupUserStatus), node["status"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["creationMode"] != null)
     {
         this._CreationMode = (GroupUserCreationMode)ParseEnum(typeof(GroupUserCreationMode), node["creationMode"].Value <string>());
     }
     if (node["userRole"] != null)
     {
         this._UserRole = (GroupUserRole)ParseEnum(typeof(GroupUserRole), node["userRole"].Value <string>());
     }
 }