Beispiel #1
0
 public void GetOrStartTimeline(TimelineCallback callback)
 {
     if (!HasTimeline)
         StartTimeline(callback);
     else
         callback(CurrentTimeline);
 }
Beispiel #2
0
 public void StartTimeline(TimelineCallback callback)
 {
     if (Syncing)
     {
         GetResponse("rtm.timelines.create", (response) =>
         {
             if (response.Timeline == 0)
                 throw new Exception("Got null timeline.");
             CurrentTimeline = response.Timeline;
             callback(CurrentTimeline);
         });
     }
     else
     {
         CurrentTimeline = 123456789;
         callback(CurrentTimeline);
     }
 }
Beispiel #3
0
 public void CreateTimeline(TimelineCallback callback)
 {
     GetResponse("rtm.timelines.create", (response) => { callback(response.Timeline); });
 }