en supprimant Yavsc.Api
This commit is contained in:
parent
46295cc25e
commit
a44f99ce8d
102 changed files with 326 additions and 80 deletions
9
Yavsc/Interfaces/IAccountBalance.cs
Normal file
9
Yavsc/Interfaces/IAccountBalance.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IAccountBalance
|
||||
{
|
||||
long ContactCredits { get; set; }
|
||||
decimal Credits { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
16
Yavsc/Interfaces/IApplicationUser.cs
Normal file
16
Yavsc/Interfaces/IApplicationUser.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using Yavsc.Models.Identity;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IApplicationUser
|
||||
{
|
||||
IAccountBalance AccountBalance { get; set; }
|
||||
IList<IContact> Book { get; set; }
|
||||
IList<ICircle> Circles { get; set; }
|
||||
string DedicatedGoogleCalendar { get; set; }
|
||||
IList<IGoogleCloudMobileDeclaration> Devices { get; set; }
|
||||
ILocation PostalAddress { get; set; }
|
||||
IList<IBlog> Posts { get; set; }
|
||||
}
|
||||
}
|
||||
17
Yavsc/Interfaces/IBlog.cs
Normal file
17
Yavsc/Interfaces/IBlog.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IBlog
|
||||
{
|
||||
string AuthorId { get; set; }
|
||||
string bcontent { get; set; }
|
||||
long Id { get; set; }
|
||||
DateTime modified { get; set; }
|
||||
string photo { get; set; }
|
||||
DateTime posted { get; set; }
|
||||
int rate { get; set; }
|
||||
string title { get; set; }
|
||||
bool visible { get; set; }
|
||||
}
|
||||
}
|
||||
13
Yavsc/Interfaces/ICircle.cs
Normal file
13
Yavsc/Interfaces/ICircle.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public interface ICircle
|
||||
{
|
||||
long Id { get; set; }
|
||||
IList<ICircleMember> Members { get; set; }
|
||||
string Name { get; set; }
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
9
Yavsc/Interfaces/ICircleMember.cs
Normal file
9
Yavsc/Interfaces/ICircleMember.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Models
|
||||
{
|
||||
public interface ICircleMember
|
||||
{
|
||||
ICircle Circle { get; set; }
|
||||
long Id { get; set; }
|
||||
IApplicationUser Member { get; set; }
|
||||
}
|
||||
}
|
||||
9
Yavsc/Interfaces/IContact.cs
Normal file
9
Yavsc/Interfaces/IContact.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Yavsc.Models
|
||||
{
|
||||
public interface IContact
|
||||
{
|
||||
IApplicationUser Owner { get; set; }
|
||||
string OwnerId { get; set; }
|
||||
string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
18
Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs
Normal file
18
Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
namespace Yavsc.Models.Identity
|
||||
{
|
||||
public interface IGCMDeclaration
|
||||
{
|
||||
string DeviceId { get; set; }
|
||||
string GCMRegistrationId { get; set; }
|
||||
string Model { get; set; }
|
||||
string Platform { get; set; }
|
||||
string Version { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public interface IGoogleCloudMobileDeclaration: IGCMDeclaration
|
||||
{
|
||||
IApplicationUser DeviceOwner { get; set; }
|
||||
string DeviceOwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
36
Yavsc/Interfaces/IIdentified.cs
Normal file
36
Yavsc/Interfaces/IIdentified.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// IIdentified.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// I identified.
|
||||
/// </summary>
|
||||
public interface IIdentified<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
T Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
8
Yavsc/Interfaces/ILocation.cs
Normal file
8
Yavsc/Interfaces/ILocation.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface ILocation
|
||||
{
|
||||
string Address { get; set; }
|
||||
long Id { get; set; }
|
||||
}
|
||||
}
|
||||
28
Yavsc/Interfaces/IPerformerSpecified.cs
Normal file
28
Yavsc/Interfaces/IPerformerSpecified.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// INominative.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IPerformerSpecified {
|
||||
string PerformerName { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
8
Yavsc/Interfaces/IPosition.cs
Normal file
8
Yavsc/Interfaces/IPosition.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Yavsc
|
||||
{
|
||||
public interface IPosition
|
||||
{
|
||||
double Latitude { get; set; }
|
||||
double Longitude { get; set; }
|
||||
}
|
||||
}
|
||||
36
Yavsc/Interfaces/IRating.cs
Normal file
36
Yavsc/Interfaces/IRating.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// IIdentified.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// 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/>.
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// I rating.
|
||||
/// </summary>
|
||||
public interface IRating: IIdentified<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the rate.
|
||||
/// </summary>
|
||||
/// <value>The rate.</value>
|
||||
int Rate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
28
Yavsc/Interfaces/ITitle.cs
Normal file
28
Yavsc/Interfaces/ITitle.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// ITitle.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// 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/>.
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface ITitle
|
||||
{
|
||||
string Title { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue