Пример #1
0
        public void ComposeWithVideo(TwitterSession session, string videoUri, string text, string[] hashtags)
        {
            int    hashtagsLength = hashtags == null ? 0 : hashtags.Length;
            string videoPath      = videoUri != null?videoUri.Replace("file://", "") : null;

            IOSTwitterImpl.TwitterComposeWithVideo(Convert.ToString(session.id), videoPath, text, hashtags, hashtagsLength);
        }
Пример #2
0
        public TwitterSession Session()
        {
            string         serializedSession = IOSTwitterImpl.TwitterSession();
            TwitterSession session           = TwitterKit.Unity.TwitterSession.Deserialize(serializedSession);

            return(session);
        }
Пример #3
0
        public void Compose(TwitterSession session, string imageUri, string text, string[] hashtags)
        {
            int    hashtagsLength = hashtags == null ? 0 : hashtags.Length;
            string imagePath      = imageUri != null?imageUri.Replace("file://", "") : null;

            IOSTwitterImpl.TwitterCompose(Convert.ToString(session.id), imagePath, text, hashtags, hashtagsLength);
        }
Пример #4
0
 public void RequestEmail(TwitterSession session)
 {
     IOSTwitterImpl.TwitterRequestEmail(Convert.ToString(session.id));
 }
Пример #5
0
 public void LogOut()
 {
     IOSTwitterImpl.TwitterLogOut();
 }
Пример #6
0
 public void LogIn()
 {
     IOSTwitterImpl.TwitterLogIn();
 }
Пример #7
0
 public void Init(string consumerKey, string consumerSecret)
 {
     IOSTwitterImpl.TwitterInit(consumerKey, consumerSecret);
 }
 public void LogOutAllSessions()
 {
     IOSTwitterImpl.TwitterLogOutAllSessions();
 }