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