Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 internal static string Serialize(TwitterSession session)
 {
     return Json.Serialize (session.ToDictionary ());
 }
Ejemplo n.º 3
0
 internal static string Serialize(TwitterSession session)
 {
     return(Json.Serialize(session.ToDictionary()));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 public void RequestEmail(TwitterSession session)
 {
     Utils.Log (KitName, "Would call Twitter RequestEmail on a physical device for user " + session.userName);
 }
Ejemplo n.º 9
0
 public EditorTwitterImpl()
 {
     AuthToken editorAuthToken = new AuthToken ("editorToken", "editorSecret");
     EditorSession = new TwitterSession (0, "Editor", editorAuthToken);
 }
Ejemplo n.º 10
0
 public void RequestEmail(TwitterSession session)
 {
     twitter.CallStatic ("requestEmail", TwitterSession.Serialize (session));
 }
Ejemplo n.º 11
0
 public void Compose(TwitterSession session, Card card)
 {
     string sessionStr = TwitterSession.Serialize (session);
     string cardString = Card.Serialize (card);
     twitter.CallStatic ("compose", sessionStr, cardString);
 }
Ejemplo n.º 12
0
 public void RequestEmail(TwitterSession session)
 {
     IOSTwitterImpl.TwitterRequestEmail (Convert.ToString (session.id));
 }
Ejemplo n.º 13
0
 public void Compose(TwitterSession session, Card card)
 {
     IOSTwitterImpl.TwitterCompose (Convert.ToString(session.id), card.imageUri, card.appIPhoneId, card.appIPadId, card.appGooglePlayId);
 }