示例#1
0
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "columns", n => { Columns = n.GetCollectionOfObjectValues <ColumnDefinition>(ColumnDefinition.CreateFromDiscriminatorValue).ToList(); } },
         { "contentTypes", n => { ContentTypes = n.GetCollectionOfObjectValues <ContentType>(ContentType.CreateFromDiscriminatorValue).ToList(); } },
         { "displayName", n => { DisplayName = n.GetStringValue(); } },
         { "drive", n => { Drive = n.GetObjectValue <ApiSdk.Models.Drive>(ApiSdk.Models.Drive.CreateFromDiscriminatorValue); } },
         { "items", n => { Items = n.GetCollectionOfObjectValues <ListItem>(ListItem.CreateFromDiscriminatorValue).ToList(); } },
         { "list", n => { List_prop = n.GetObjectValue <ListInfo>(ListInfo.CreateFromDiscriminatorValue); } },
         { "operations", n => { Operations = n.GetCollectionOfObjectValues <RichLongRunningOperation>(RichLongRunningOperation.CreateFromDiscriminatorValue).ToList(); } },
         { "sharepointIds", n => { SharepointIds = n.GetObjectValue <ApiSdk.Models.SharepointIds>(ApiSdk.Models.SharepointIds.CreateFromDiscriminatorValue); } },
         { "subscriptions", n => { Subscriptions = n.GetCollectionOfObjectValues <Subscription>(Subscription.CreateFromDiscriminatorValue).ToList(); } },
         { "system", n => { System = n.GetObjectValue <SystemFacet>(SystemFacet.CreateFromDiscriminatorValue); } },
     });
 }
示例#2
0
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "bundles", n => { Bundles = n.GetCollectionOfObjectValues <DriveItem>(DriveItem.CreateFromDiscriminatorValue).ToList(); } },
         { "driveType", n => { DriveType = n.GetStringValue(); } },
         { "following", n => { Following = n.GetCollectionOfObjectValues <DriveItem>(DriveItem.CreateFromDiscriminatorValue).ToList(); } },
         { "items", n => { Items = n.GetCollectionOfObjectValues <DriveItem>(DriveItem.CreateFromDiscriminatorValue).ToList(); } },
         { "list", n => { List = n.GetObjectValue <ApiSdk.Models.List>(ApiSdk.Models.List.CreateFromDiscriminatorValue); } },
         { "owner", n => { Owner = n.GetObjectValue <IdentitySet>(IdentitySet.CreateFromDiscriminatorValue); } },
         { "quota", n => { Quota = n.GetObjectValue <ApiSdk.Models.Quota>(ApiSdk.Models.Quota.CreateFromDiscriminatorValue); } },
         { "root", n => { Root = n.GetObjectValue <DriveItem>(DriveItem.CreateFromDiscriminatorValue); } },
         { "sharePointIds", n => { SharePointIds = n.GetObjectValue <ApiSdk.Models.SharepointIds>(ApiSdk.Models.SharepointIds.CreateFromDiscriminatorValue); } },
         { "special", n => { Special = n.GetCollectionOfObjectValues <DriveItem>(DriveItem.CreateFromDiscriminatorValue).ToList(); } },
         { "system", n => { System = n.GetObjectValue <SystemFacet>(SystemFacet.CreateFromDiscriminatorValue); } },
     });
 }