Ejemplo n.º 1
0
        internal static CurrentUser Create(GfycatClient gfycatClient, Model currentUserModel)
        {
            CurrentUser user = new CurrentUser(gfycatClient, currentUserModel.Id);

            user.Update(currentUserModel);
            return(user);
        }
Ejemplo n.º 2
0
 internal void Update(Model model)
 {
     Username                  = model.Username;
     Description               = model.Description;
     ProfileUrl                = model.ProfileUrl;
     Name                      = model.Name;
     Views                     = model.Views;
     EmailVerified             = model.EmailVerified;
     Url                       = model.Url;
     CreationDate              = model.CreationDate;
     ProfileImageUrl           = model.ProfileImageUrl;
     Verified                  = model.Verified;
     Followers                 = model.Followers;
     Following                 = model.Following;
     IframeProfileImageVisible = model.IframeProfileImageVisible;
     GeoWhitelist              = model.GeoWhitelist.Select(s => new RegionInfo(s)).ToReadOnlyCollection();
     DomainWhitelist           = model.DomainWhitelist.ToReadOnlyCollection();
     Email                     = model.Email;
     UploadNotices             = model.UploadNotices;
     TotalGfys                 = model.TotalGfycats;
     TotalAlbums               = model.TotalAlbums;
     TotalBookmarks            = model.TotalBookmarks;
     PublishedGfys             = model.PublishedGfycats;
     PublishedAlbums           = model.PublishedAlbums;
 }