예제 #1
0
 public PollingConnectionBase(AuthenticateInfo ai)
     : base(ai)
 {
     _disposablesHolder.Add(Observable.FromEvent(
         _ => App.OnApplicationFinalize += _,
         _ => App.OnApplicationFinalize -= _)
         .Subscribe(_ => this.Dispose()));
     _disposablesHolder.Add(Observable.Interval(TimeSpan.FromSeconds(1))
         .Subscribe(_ => OnTick()));
 }
예제 #2
0
 public override IObservable<TwitterStatus> Upload(AuthenticateInfo authInfo, string status,
     byte[] attachedImageBin, long? in_reply_to_status_id = null,
     double? geo_lat = null, double? geo_long = null)
 {
     return authInfo.UpdateWithMedia(
         status,
         attachedImageBin,
         "twitter_picture",
         false,
         in_reply_to_status_id,
         geo_lat, geo_long);
 }
예제 #3
0
 public static void ReceiveMessages(AuthenticateInfo info, long? max_id = null)
 {
     info.GetDirectMessages(count: 50, max_id: max_id)
         .RegisterToStore();
 }
예제 #4
0
 public static void ReceiveMentionTimeline(AuthenticateInfo info, long? max_id = null)
 {
     info.GetMentions(count: 100, include_rts: false, max_id: max_id)
         .RegisterToStore();
 }
예제 #5
0
 public static void ReceiveHomeTimeline(AuthenticateInfo info, long? max_id = null)
 {
     info.GetHomeTimeline(count: 100, include_rts: true, include_entities: true, max_id: max_id)
         .RegisterToStore();
 }
예제 #6
0
 public UserTimelinesReceiver(AuthenticateInfo info)
     : base(info)
 {
 }
예제 #7
0
 public ConnectionBase(AuthenticateInfo authInfo)
 {
     this._authInfo = authInfo;
 }
예제 #8
0
 public UserStreamsConnection(AuthenticateInfo ai)
     : base(ai)
 {
 }
예제 #9
0
 protected IObservable<TwitterStatus> Update(AuthenticateInfo info,
     string status, long? inReplyToId, long? geoLat, long? geoLong)
 {
     return info.Update(status, inReplyToId, geoLat, geoLong);
 }
예제 #10
0
 /// <summary>
 /// returns updated status.
 /// </summary>
 public abstract IObservable<TwitterStatus> Upload(AuthenticateInfo authInfo,
     string status, byte[] attachedImageBin, long? in_reply_to_status_id = null,
     double? geo_lat = null, double? geo_long = null);