@@ -25,6 +25,9 @@ public class SDK
25
25
private static string _userToken ;
26
26
private static string _refreshToken ;
27
27
private static readonly string _version ;
28
+ private static string _corporationId ;
29
+ private static string _integratorId ;
30
+ private static string _platformId ;
28
31
29
32
static SDK ( )
30
33
{
@@ -311,5 +314,82 @@ public static JToken Put(string uri, JObject payload)
311
314
return client . ExecuteGenericRequest ( HttpMethod . PUT , uri , PayloadType . JSON , payload ) ;
312
315
}
313
316
317
+ /// <summary>
318
+ /// Property that represent the corporation id.
319
+ /// </summary>
320
+ public static string CorporationId
321
+ {
322
+ get { return _corporationId ; }
323
+ set
324
+ {
325
+ if ( ! string . IsNullOrEmpty ( _corporationId ) )
326
+ {
327
+ throw new MPConfException ( "corporationId setting can not be changed" ) ;
328
+ }
329
+ _corporationId = value ;
330
+ }
331
+ }
332
+
333
+ /// <summary>
334
+ /// Property that represent the integrator id.
335
+ /// </summary>
336
+ public static string IntegratorId
337
+ {
338
+ get { return _integratorId ; }
339
+ set
340
+ {
341
+ if ( ! string . IsNullOrEmpty ( _integratorId ) )
342
+ {
343
+ throw new MPConfException ( "integratorId setting can not be changed" ) ;
344
+ }
345
+ _integratorId = value ;
346
+ }
347
+ }
348
+
349
+ /// <summary>
350
+ /// Property that represent the plataform id.
351
+ /// </summary>
352
+ public static string PlatformId
353
+ {
354
+ get { return _platformId ; }
355
+ set
356
+ {
357
+ if ( ! string . IsNullOrEmpty ( _platformId ) )
358
+ {
359
+ throw new MPConfException ( "platformId setting can not be changed" ) ;
360
+ }
361
+ _platformId = value ;
362
+ }
363
+ }
364
+
365
+ public static void SetCorporationId ( string corporationId )
366
+ {
367
+ CorporationId = corporationId ;
368
+ }
369
+
370
+ public static string GetCorporationId ( )
371
+ {
372
+ return CorporationId ;
373
+ }
374
+
375
+ public static void SetIntegratorId ( string integratorId )
376
+ {
377
+ IntegratorId = integratorId ;
378
+ }
379
+
380
+ public static string GetIntegratorId ( )
381
+ {
382
+ return IntegratorId ;
383
+ }
384
+
385
+ public static void SetPlatformId ( string platformId )
386
+ {
387
+ PlatformId = platformId ;
388
+ }
389
+
390
+ public static string GetPlatformId ( )
391
+ {
392
+ return PlatformId ;
393
+ }
314
394
}
315
395
}
0 commit comments