예제 #1
0
        internal static async void ReadTimelines()
        {
            var stream = Token.Streaming.UserAsObservable().Publish();

            stream.OfType <EventMessage>().Subscribe(message => SelfIntroduction.OnEventReceived(message));
            var disposable = stream.Connect();
        }
예제 #2
0
 private static async Task MainAsync()
 {
     TwitterAPI.ReadTokens();
     SelfIntroduction.SetSelfIntroductionInfomation();
     //var result = Tweet("ShiranuiTest").Result;
     //Tweet("ReplyTest", result.Id);
     TwitterAPI.ReadTimelines();
 }