many changes
This commit is contained in:
parent
c7f81699a4
commit
6809e3dfe2
49 changed files with 3429 additions and 215 deletions
48
yavscModel/Google/AskForADate.cs
Normal file
48
yavscModel/Google/AskForADate.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
//
|
||||
// AskForADate.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2014 Paul Schneider
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Yavsc.Model.Google
|
||||
{
|
||||
public class AskForADate
|
||||
{
|
||||
public AskForADate ()
|
||||
{
|
||||
MinDate = MaxDate = DateTime.Now.AddMinutes (5);
|
||||
}
|
||||
|
||||
[Display(Name="MinDate",ResourceType=typeof(LocalizedText))]
|
||||
[DataType(DataType.Date)]
|
||||
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
|
||||
public DateTime MinDate { get; set; }
|
||||
|
||||
[Display(Name="MaxDate",ResourceType=typeof(LocalizedText))]
|
||||
[DataType(DataType.Date)]
|
||||
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
|
||||
public DateTime MaxDate { get; set; }
|
||||
|
||||
[Display(Name="Consultant",ResourceType=typeof(LocalizedText))]
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -34,24 +34,6 @@ using Yavsc.Model;
|
|||
|
||||
namespace Yavsc.Model.Google
|
||||
{
|
||||
/*
|
||||
"url": "https://plus.google.com/111395572362177872801",
|
||||
"image": {
|
||||
"url": "https://lh6.googleusercontent.com/-JqDVMPqafdA/AAAAAAAAAAI/AAAAAAAAADY/FamseW6_nl4/photo.jpg?sz=50",
|
||||
"isDefault": false
|
||||
},
|
||||
"placesLived": [
|
||||
{
|
||||
"value": "Suresnes, France",
|
||||
"primary": true
|
||||
}
|
||||
],
|
||||
"isPlusUser": true,
|
||||
"language": "fr",
|
||||
"circledByCount": 0,
|
||||
"verified": false
|
||||
}
|
||||
*/
|
||||
|
||||
public class AuthToken {
|
||||
public string access_token { get; set; }
|
||||
|
|
|
|||
45
yavscModel/Google/CalendarList.cs
Normal file
45
yavscModel/Google/CalendarList.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
//
|
||||
// CalendarList.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2014 Paul Schneider
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Threading;
|
||||
using System.Web.Mvc;
|
||||
using System.Configuration;
|
||||
using System.Threading.Tasks;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.Model.Google
|
||||
{
|
||||
public class CalendarList {
|
||||
public string kind { get; set;}
|
||||
public string etag { get; set; }
|
||||
public string nextSyncToken { get; set; }
|
||||
public CalendarListEntry[] items { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
65
yavscModel/Google/CalendarListEntry.cs
Normal file
65
yavscModel/Google/CalendarListEntry.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
//
|
||||
// CalendarListEntry.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2014 Paul Schneider
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Threading;
|
||||
using System.Web.Mvc;
|
||||
using System.Configuration;
|
||||
using System.Threading.Tasks;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.Model.Google
|
||||
{
|
||||
|
||||
public class CalendarListEntry {
|
||||
public string kind { get; set;}
|
||||
public string etag { get; set; }
|
||||
public string id { get; set; }
|
||||
public string summary { get; set; }
|
||||
public string description { get; set; }
|
||||
public string timeZone { get; set; }
|
||||
public string colorId { get; set; }
|
||||
public string backgroundColor { get; set; }
|
||||
public string foregroundColor { get; set; }
|
||||
public bool selected { get; set; }
|
||||
public bool primary { get; set; }
|
||||
public string accessRole { get; set; }
|
||||
public class Reminder {
|
||||
public string method { get; set; }
|
||||
public int minutes { get; set; }
|
||||
}
|
||||
public Reminder[] defaultReminders { get; set; }
|
||||
/* "notificationSettings": { "notifications":
|
||||
[ { "type": "eventCreation", "method": "email" },
|
||||
{ "type": "eventChange", "method": "email" },
|
||||
{ "type": "eventCancellation", "method": "email" },
|
||||
{ "type": "eventResponse", "method": "email" } ] }, "primary": true },
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -34,6 +34,7 @@ using Yavsc.Model;
|
|||
|
||||
namespace Yavsc.Model.Google
|
||||
{
|
||||
|
||||
public class People {
|
||||
public string kind { get; set; }
|
||||
public string etag { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue