コード例 #1
0
ファイル: UserIdentity.cs プロジェクト: maciek4/FileSync
 /// <summary>
 /// Creates new user identity.
 /// </summary>
 /// <param name="cr">user credentials</param>
 /// <param name="fromDatabase">if true, the object contents will be downloaded
 /// from the database</param>
 public UserIdentity(Credentials cr, bool fromDatabase)
     : this(fromDatabase ? FromDatabase(cr) : (UserIdentity)cr)
 {
     //nothing needed here
 }
コード例 #2
0
ファイル: FileIdentity.cs プロジェクト: maciek4/FileSync
 public ActionResult UpdateInDatabase(Credentials cr, MachineIdentity mid, DirIdentity did,
                                      FileIdentity newFid)
 {
     throw new ActionException("File modification is not properly handled.",
                               ActionType.File);
 }
コード例 #3
0
ファイル: UserIdentity.cs プロジェクト: maciek4/FileSync
 /// <summary>
 /// Creates new user identity.
 /// </summary>
 /// <param name="cr">user credentials</param>
 /// <param name="name">full name or some nickname of the user</param>
 /// <param name="email">email address of the user</param>
 public UserIdentity(Credentials cr, string name = null, string email = null)
     : this(cr.Login, cr.Password, name, email)
 {
     //nothing needed here
 }