Example #1
0
 /// <summary>
 /// Method to initialize IdentifyServiceManager interfaces with user login credentials.
 /// </summary>
 /// <param name="consumerKey">The consumer key.</param>
 /// <param name="consumerSecretKey">The consumer secret key.</param>
 /// <returns>
 /// IdentifyServiceManager
 /// </returns>
 public static IdentifyServiceManager getInstance(String consumerKey, String consumerSecretKey)
 {
     if (serviceManager == null)
     {
         OAuthFactory.setInstance(new BaseOAuthServiceImpl(consumerKey, consumerSecretKey));
         serviceManager = new IdentifyServiceManager();
         Debug.WriteLine("Identify Service instance has been created");
     }
     Debug.WriteLine("Identify Service instance has been already created");
     return(serviceManager);
 }
Example #2
0
 /// <summary>
 /// Gets the instance of IdentifyServiceManager.
 /// </summary>
 /// <param name="baseOAuthService">The base oAuth service.</param>
 /// <returns>
 /// IdentifyServiceManager
 /// </returns>
 public static IdentifyServiceManager getInstance(BaseOAuthService baseOAuthService)
 {
     if (serviceManager == null)
     {
         OAuthFactory.setInstance(baseOAuthService);
         serviceManager = new IdentifyServiceManager();
         Debug.WriteLine("Identify Service instance has been created");
     }
     Debug.WriteLine("Identify Service instance has been already created");
     return(serviceManager);
 }