Пример #1
0
 /// <summary>
 /// Constructs a new API struct.
 /// </summary>
 /// <param name="version">The version number.</param>
 /// <param name="path">The path.</param>
 /// <param name="method">The request type.</param>
 /// <param name="sign">Does the call require a sha1 signature</param> 
 /// <param name="sendToken">Does the call require a request token</param>
 public API(int version, string path, drWWW.Method method, bool sign, bool sendToken)
 {
     this.version 		= version;
     this.path    		= path;
     this.method  		= method;
     this.sign 	   		= sign;
     this.sendToken		= sendToken;
 }
Пример #2
0
 /// <summary>
 /// Constructs a new API struct.
 /// </summary>
 /// <param name="version">The version number.</param>
 /// <param name="path">The path.</param>
 /// <param name="method">The request type.</param>
 public API(int version, string path, drWWW.Method method)
 {
     this.version = version;
     this.path    = path;
     this.method  = method;
 }