コード例 #1
0
ファイル: GDataDgc.cs プロジェクト: robertj/GDataCmdLet
 public GDataTypes.GDataUserEntrys CreateUserEntrys(UserFeed _userFeed)
 {
     var _gDataUserEntrys = new GDataTypes.GDataUserEntrys();
     foreach (UserEntry _userEntry in _userFeed.Entries)
     {
         var _gDataUserEntry = new GDataTypes.GDataUserEntry();
         _gDataUserEntry.UserName = _userEntry.Login.UserName;
         _gDataUserEntry.Admin = _userEntry.Login.Admin;
         _gDataUserEntry.susspended = _userEntry.Login.Suspended;
         _gDataUserEntry.AgreedToTerms = _userEntry.Login.AgreedToTerms;
         _gDataUserEntry.ChangePasswordAtNextLogin = _userEntry.Login.ChangePasswordAtNextLogin;
         _gDataUserEntry.GivenName = _userEntry.Name.GivenName;
         _gDataUserEntry.FamilyName = _userEntry.Name.FamilyName;
         _gDataUserEntry.Limit = _userEntry.Quota.Limit;
         _gDataUserEntry.SelfUri = _userEntry.SelfUri.ToString();
         _gDataUserEntrys.Add(_gDataUserEntry);
     }
     return _gDataUserEntrys;
 }
コード例 #2
0
ファイル: GDataDgc.cs プロジェクト: robertj/GDataCmdLet
 public GDataTypes.GDataUserEntry CreateUserEntry(UserEntry userEntry)
 {
     var _gDataUserEntry = new GDataTypes.GDataUserEntry();
     _gDataUserEntry.UserName = userEntry.Login.UserName;
     _gDataUserEntry.Admin = userEntry.Login.Admin;
     _gDataUserEntry.susspended = userEntry.Login.Suspended;
     _gDataUserEntry.AgreedToTerms = userEntry.Login.AgreedToTerms;
     _gDataUserEntry.ChangePasswordAtNextLogin = userEntry.Login.ChangePasswordAtNextLogin;
     _gDataUserEntry.GivenName = userEntry.Name.GivenName;
     _gDataUserEntry.FamilyName = userEntry.Name.FamilyName;
     _gDataUserEntry.Limit = userEntry.Quota.Limit;
     _gDataUserEntry.SelfUri = userEntry.SelfUri.ToString();
     return _gDataUserEntry;
 }