internal static async void ReadTimelines() { var stream = Token.Streaming.UserAsObservable().Publish(); stream.OfType <EventMessage>().Subscribe(message => SelfIntroduction.OnEventReceived(message)); var disposable = stream.Connect(); }
private static async Task MainAsync() { TwitterAPI.ReadTokens(); SelfIntroduction.SetSelfIntroductionInfomation(); //var result = Tweet("ShiranuiTest").Result; //Tweet("ReplyTest", result.Id); TwitterAPI.ReadTimelines(); }