ListSharedFoldersResult enc.IEncodable <ListSharedFoldersResult> .Decode(enc.IDecoder decoder)
        {
            using (var obj = decoder.GetObject())
            {
                this.Entries = new col.List <SharedFolderMetadata>(obj.GetFieldObjectList <SharedFolderMetadata>("entries"));
            }

            return(this);
        }
Exemplo n.º 2
0
        GetSharedLinksResult enc.IEncodable <GetSharedLinksResult> .Decode(enc.IDecoder decoder)
        {
            using (var obj = decoder.GetObject())
            {
                this.Links = new col.List <LinkMetadata>(obj.GetFieldObjectList <LinkMetadata>("links"));
            }

            return(this);
        }
        ListRevisionsResult enc.IEncodable <ListRevisionsResult> .Decode(enc.IDecoder decoder)
        {
            using (var obj = decoder.GetObject())
            {
                this.IsDeleted = obj.GetField <bool>("is_deleted");
                this.Entries   = new col.List <FileMetadata>(obj.GetFieldObjectList <FileMetadata>("entries"));
            }

            return(this);
        }
Exemplo n.º 4
0
        FullSharedFolderMetadata enc.IEncodable <FullSharedFolderMetadata> .Decode(enc.IDecoder decoder)
        {
            using (var obj = decoder.GetObject())
            {
                this.Name             = obj.GetField <string>("name");
                this.Id               = obj.GetField <string>("id");
                this.AccessType       = obj.GetFieldObject <AccessType>("access_type");
                this.SharedLinkPolicy = obj.GetFieldObject <SharedLinkPolicy>("shared_link_policy");
                this.Membership       = new col.List <UserMembershipInfo>(obj.GetFieldObjectList <UserMembershipInfo>("membership"));
                this.Groups           = new col.List <GroupMembershipInfo>(obj.GetFieldObjectList <GroupMembershipInfo>("groups"));
                if (obj.HasField("path_lower"))
                {
                    this.PathLower = obj.GetField <string>("path_lower");
                }
            }

            return(this);
        }