private NashClientConfig(string apikey, string secret, ulong clientId, NashEnvironment environment, ulong timeout, string affiliateCode) { this.apikey = apikey; this.secret = secret; this.clientId = clientId; this.environment = environment; this.timeout = timeout; this.affiliateCode = affiliateCode; }
static public NashClientConfig Unauthenticated(ulong clientId, NashEnvironment environment, ulong timeout) { return(new NashClientConfig(null, null, clientId, environment, timeout, null)); }
static public NashClientConfig Authenticated(string apikey, string secret, string affiliateCode, ulong clientId, NashEnvironment environment, ulong timeout) { return(new NashClientConfig(apikey, secret, clientId, environment, timeout, affiliateCode)); }
unsafe private static extern FFIResult InitNash(string apikey, string secret, ulong clientid, NashEnvironment environment, ulong timeout, string affiliateCode, out IntPtr client);