Beispiel #1
0
 /// <summary>
 /// Request Twitter users email address
 /// <param name="session">User's session from Login</param>
 /// <param name="successCallback">Callback to call on success</param>
 /// <param name="failureCallback">Callback to call on failure</param>
 /// </summary>
 public static void RequestEmail(TwitterSession session, Action<string> successCallback = null, Action<ApiError> failureCallback = null)
 {
     twitterGameObject.GetComponent<TwitterComponent> ().emailSuccessAction = successCallback;
     twitterGameObject.GetComponent<TwitterComponent> ().emailFailureAction = failureCallback;
     twitter.RequestEmail (session);
 }
Beispiel #2
0
 internal static string Serialize(TwitterSession session)
 {
     return Json.Serialize (session.ToDictionary ());
 }
Beispiel #3
0
 internal static string Serialize(TwitterSession session)
 {
     return(Json.Serialize(session.ToDictionary()));
 }
Beispiel #4
0
 /// <summary>
 /// Show Twitter composer
 /// <param name="session">User’s session from Login</param>
 /// <param name="card">Card for composer</param>
 /// </summary>
 public static void Compose(TwitterSession session, Card card)
 {
     twitter.Compose (session, card);
 }
Beispiel #5
0
 /// <summary>
 /// Request Twitter users email address
 /// <param name="session">User's session from Login</param>
 /// <param name="successCallback">Callback to call on success</param>
 /// <param name="failureCallback">Callback to call on failure</param>
 /// </summary>
 public static void RequestEmail(TwitterSession session, Action <string> successCallback = null, Action <ApiError> failureCallback = null)
 {
     twitterGameObject.GetComponent <TwitterComponent> ().emailSuccessAction = successCallback;
     twitterGameObject.GetComponent <TwitterComponent> ().emailFailureAction = failureCallback;
     twitter.RequestEmail(session);
 }
Beispiel #6
0
 /// <summary>
 /// Show Twitter composer
 /// <param name="session">User’s session from Login</param>
 /// <param name="card">Card for composer</param>
 /// <param name="hashtags">hashtags to pre-fill</param>
 /// </summary>
 public static void Compose(TwitterSession session, Card card, string[] hashtags = null)
 {
     twitter.Compose(session, card, hashtags);
 }
Beispiel #7
0
 public void Compose(TwitterSession session, Card card)
 {
     Utils.Log (KitName, "Would call Twitter Compose on a physical device for user " + session.userName + " with Image URI " + card.imageUri);
 }
Beispiel #8
0
 public void RequestEmail(TwitterSession session)
 {
     Utils.Log (KitName, "Would call Twitter RequestEmail on a physical device for user " + session.userName);
 }
Beispiel #9
0
 public EditorTwitterImpl()
 {
     AuthToken editorAuthToken = new AuthToken ("editorToken", "editorSecret");
     EditorSession = new TwitterSession (0, "Editor", editorAuthToken);
 }
Beispiel #10
0
 public void RequestEmail(TwitterSession session)
 {
     twitter.CallStatic ("requestEmail", TwitterSession.Serialize (session));
 }
Beispiel #11
0
 public void Compose(TwitterSession session, Card card)
 {
     string sessionStr = TwitterSession.Serialize (session);
     string cardString = Card.Serialize (card);
     twitter.CallStatic ("compose", sessionStr, cardString);
 }
Beispiel #12
0
 public void RequestEmail(TwitterSession session)
 {
     IOSTwitterImpl.TwitterRequestEmail (Convert.ToString (session.id));
 }
Beispiel #13
0
 public void Compose(TwitterSession session, Card card)
 {
     IOSTwitterImpl.TwitterCompose (Convert.ToString(session.id), card.imageUri, card.appIPhoneId, card.appIPadId, card.appGooglePlayId);
 }