Пример #1
0
 internal RestRequest GetUpdates(TvdbUpdatePeriod Period, object userState = null)
 {
     return(GetBuilder(REQUEST_GETUPDATES)
            .SetUserState(userState)
            .AddUrlSegment(RequestBuilder.URLSEGMENT_APIKEY, ApiKey)
            .AddUrlSegment(RequestBuilder.URLSEGMENT_PERIOD, Period.ToString())
            .GetRequest());
 }
Пример #2
0
 internal RestRequest GetUpdates(TvdbUpdatePeriod Period, object userState = null)
 {
     return GetBuilder(REQUEST_GETUPDATES)
         .SetUserState(userState)
         .AddUrlSegment(RequestBuilder.URLSEGMENT_APIKEY, ApiKey)
         .AddUrlSegment(RequestBuilder.URLSEGMENT_PERIOD, Period.ToString())
         .GetRequest();
 }
Пример #3
0
 public void GetUpdates(string XMLMirror, TvdbUpdatePeriod Period, object UserState, Action <TvdbAsyncResult <TvdbUpdates> > callback)
 {
     //ProcessAsyncRequest<TvdbUpdates>(XMLMirror, BuildGetUpdatesRequest(Period, UserState), callback);
     ProcessAsyncRequest <TvdbUpdates>(XMLMirror, Generator.GetUpdates(Period, UserState), callback);
 }
Пример #4
0
 public TvdbUpdates GetUpdates(string XMLMirror, TvdbUpdatePeriod Period)
 {
     //return ProcessRequest<TvdbUpdates>(XMLMirror, BuildGetUpdatesRequest(Period));
     return(ProcessRequest <TvdbUpdates>(XMLMirror, Generator.GetUpdates(Period)));
 }