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()));
 }
 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);
 }
 public static void ReceiveMessages(AuthenticateInfo info, long? max_id = null)
 {
     info.GetDirectMessages(count: 50, max_id: max_id)
         .RegisterToStore();
 }
 public static void ReceiveMentionTimeline(AuthenticateInfo info, long? max_id = null)
 {
     info.GetMentions(count: 100, include_rts: false, max_id: max_id)
         .RegisterToStore();
 }
 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();
 }
 public UserTimelinesReceiver(AuthenticateInfo info)
     : base(info)
 {
 }
Beispiel #7
0
 public ConnectionBase(AuthenticateInfo authInfo)
 {
     this._authInfo = authInfo;
 }
 public UserStreamsConnection(AuthenticateInfo ai)
     : base(ai)
 {
 }
 protected IObservable<TwitterStatus> Update(AuthenticateInfo info,
     string status, long? inReplyToId, long? geoLat, long? geoLong)
 {
     return info.Update(status, inReplyToId, geoLat, geoLong);
 }
 /// <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);