cleaning duplicated definitions
This commit is contained in:
parent
a5ffc3583d
commit
003651e461
20 changed files with 5816 additions and 561 deletions
39
Yavsc/Services/GoogleApis/CalendarClient.cs
Normal file
39
Yavsc/Services/GoogleApis/CalendarClient.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using Google.Apis.Requests;
|
||||
using Google.Apis.Services;
|
||||
using Yavsc.Models.Google;
|
||||
|
||||
namespace Yavsc.Services.GoogleApis
|
||||
{
|
||||
public class CalendarClient : ClientServiceRequest<Resource>
|
||||
{
|
||||
public CalendarClient(IClientService service) : base (service) {
|
||||
|
||||
}
|
||||
public override string HttpMethod
|
||||
{
|
||||
get
|
||||
{
|
||||
return "POST";
|
||||
}
|
||||
}
|
||||
public string calendarId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public override string MethodName
|
||||
{
|
||||
get
|
||||
{
|
||||
return "calendar.events.insert";
|
||||
}
|
||||
}
|
||||
|
||||
public override string RestPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return "calendars/{calendarId}/events";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue