예제 #1
0
 /// <summary>
 /// Creates a new instance of Data
 /// </summary>
 /// <param name="username">username</param>
 /// <param name="password">password</param>
 /// <returns>New instance of Data</returns>
 public static Data CreateInstance(String username, String password)
 {
     Data instance = new Data();
     instance.username = username;
     instance.password = password;
     return instance;
 }
예제 #2
0
 /// <summary>
 /// Creates a new instance of the Authentification
 /// </summary>
 /// <param name="className">ClassName</param>
 /// <param name="data">Data</param>
 /// <param name="binaryData">Binary Data</param>
 /// <returns>A new instance of Authentification</returns>
 public static Authentification createInstance(String className, Data data, BinaryData binaryData)
 {
     Authentification instance = new Authentification();
     instance.className = className;
     instance.data = data;
     instance.binaryData = binaryData;
     return instance;
 }