@@ -59,10 +59,7 @@ private class AuthRequestPayload
59
59
/// The RestSharp client
60
60
/// </summary>
61
61
private AbstractKinveyClient client ;
62
- /// <summary>
63
- /// The base URL of the request.
64
- /// </summary>
65
- private string BaseUrl ;
62
+
66
63
/// <summary>
67
64
/// The URI template parameters.
68
65
/// </summary>
@@ -91,18 +88,16 @@ private class AuthRequestPayload
91
88
/// Initializes a new instance of the <see cref="KinveyXamarin.KinveyAuthRequest"/> class.
92
89
/// </summary>
93
90
/// <param name="client">Client.</param>
94
- /// <param name="baseUrl">Base URL.</param>
95
91
/// <param name="auth">authenticator to use.</param>
96
92
/// <param name="appKey">App key.</param>
97
93
/// <param name="username">Username.</param>
98
94
/// <param name="password">Password.</param>
99
95
/// <param name="user">User.</param>
100
96
/// <param name="create">If set to <c>true</c> create.</param>
101
- public KinveyAuthRequest ( AbstractKinveyClient client , string baseUrl , HttpBasicAuthenticator auth , string appKey , string username , string password , User user , bool create )
97
+ public KinveyAuthRequest ( AbstractKinveyClient client , HttpBasicAuthenticator auth , string appKey , string username , string password , User user , bool create )
102
98
103
99
{
104
100
this . client = client ;
105
- this . BaseUrl = baseUrl ;
106
101
this . appKeyAuthentication = auth ;
107
102
if ( username != null && password != null ) {
108
103
this . requestPayload = new JObject ( ) ;
@@ -128,11 +123,10 @@ public KinveyAuthRequest(AbstractKinveyClient client, string baseUrl, HttpBasicA
128
123
/// <param name="identity">The third party identity.</param>
129
124
/// <param name="user">User.</param>
130
125
/// <param name="create">If set to <c>true</c> create.</param>
131
- public KinveyAuthRequest ( AbstractKinveyClient client , string baseUrl , HttpBasicAuthenticator auth , string appKey , ThirdPartyIdentity identity , User user , bool create )
126
+ public KinveyAuthRequest ( AbstractKinveyClient client , HttpBasicAuthenticator auth , string appKey , ThirdPartyIdentity identity , User user , bool create )
132
127
133
128
{
134
129
this . client = client ;
135
- this . BaseUrl = baseUrl ;
136
130
this . appKeyAuthentication = auth ;
137
131
this . identity = identity ;
138
132
if ( user != null )
@@ -274,7 +268,6 @@ public class Builder
274
268
275
269
private string password ;
276
270
277
- private string baseUrl ;
278
271
279
272
private string appKey ;
280
273
@@ -288,10 +281,9 @@ public class Builder
288
281
/// <param name="appKey">App key.</param>
289
282
/// <param name="appSecret">App secret.</param>
290
283
/// <param name="user">User.</param>
291
- public Builder ( AbstractKinveyClient transport , string BaseUrl , string appKey , string appSecret , User user )
284
+ public Builder ( AbstractKinveyClient transport , string appKey , string appSecret , User user )
292
285
{
293
286
this . client = transport ;
294
- this . baseUrl = BaseUrl ;
295
287
this . appKeyAuthentication = new HttpBasicAuthenticator ( appKey , appSecret ) ;
296
288
this . appKey = appKey ;
297
289
this . user = user ;
@@ -307,16 +299,16 @@ public Builder(AbstractKinveyClient transport, string BaseUrl, string appKey, st
307
299
/// <param name="username">Username.</param>
308
300
/// <param name="password">Password.</param>
309
301
/// <param name="user">User.</param>
310
- public Builder ( AbstractKinveyClient transport , string BaseUrl , string appKey , string appSecret , string username , string password , User user )
311
- : this ( transport , BaseUrl , appKey , appSecret , user )
302
+ public Builder ( AbstractKinveyClient transport , string appKey , string appSecret , string username , string password , User user )
303
+ : this ( transport , appKey , appSecret , user )
312
304
{
313
305
this . username = username ;
314
306
this . password = password ;
315
307
}
316
308
317
309
318
- public Builder ( AbstractKinveyClient transport , string BaseUrl , string appKey , string appSecret , ThirdPartyIdentity identity , User user )
319
- : this ( transport , BaseUrl , appKey , appSecret , user )
310
+ public Builder ( AbstractKinveyClient transport , string appKey , string appSecret , ThirdPartyIdentity identity , User user )
311
+ : this ( transport , appKey , appSecret , user )
320
312
{
321
313
this . identity = identity ;
322
314
@@ -329,9 +321,9 @@ public Builder(AbstractKinveyClient transport, string BaseUrl, string appKey, st
329
321
public KinveyAuthRequest build ( )
330
322
{
331
323
if ( identity == null ) {
332
- return new KinveyAuthRequest ( Client , BaseUrl , AppKeyAuthentication , AppKey , Username , Password , KinveyUser , this . create ) ;
324
+ return new KinveyAuthRequest ( Client , AppKeyAuthentication , AppKey , Username , Password , KinveyUser , this . create ) ;
333
325
} else {
334
- return new KinveyAuthRequest ( Client , BaseUrl , AppKeyAuthentication , AppKey , identity , KinveyUser , this . create ) ;
326
+ return new KinveyAuthRequest ( Client , AppKeyAuthentication , AppKey , identity , KinveyUser , this . create ) ;
335
327
}
336
328
}
337
329
@@ -399,15 +391,6 @@ public HttpBasicAuthenticator AppKeyAuthentication
399
391
get { return appKeyAuthentication ; }
400
392
}
401
393
402
- /// <summary>
403
- /// Gets the base URL.
404
- /// </summary>
405
- /// <value>The base URL.</value>
406
- public string BaseUrl
407
- {
408
- get { return baseUrl ; }
409
- }
410
-
411
394
/// <summary>
412
395
/// Gets or sets the app key.
413
396
/// </summary>
0 commit comments