refabrique:

* Nouvel espace de noms: Yavsc.Interfaces
* Nouvelle interface : ILifeTime
* Factorisation
This commit is contained in:
2016-07-29 13:37:46 +02:00
parent 1bb21447eb
commit b7ac60b2a8
13 changed files with 28 additions and 25 deletions

View File

@ -1,4 +1,4 @@
namespace Yavsc.Models namespace Yavsc.Interfaces
{ {
public interface IAccountBalance public interface IAccountBalance
{ {

View File

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using Yavsc.Models.Identity;
namespace Yavsc.Models namespace Yavsc.Interfaces
{ {
public interface IApplicationUser public interface IApplicationUser
{ {

View File

@ -1,17 +1,11 @@
using System; namespace Yavsc.Interfaces
namespace Yavsc.Models
{ {
public interface IBlog public interface IBlog: IIdentified<long>, IRating<long>, ITitle, ILifeTime
{ {
string AuthorId { get; set; } string AuthorId { get; set; }
string bcontent { get; set; } string Content { get; set; }
long Id { get; set; } string Photo { get; set; }
DateTime modified { get; set; } bool Visible { get; set; }
string photo { get; set; }
DateTime posted { get; set; }
int rate { get; set; }
string title { get; set; }
bool visible { get; set; }
} }
} }

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Yavsc.Models namespace Yavsc.Interfaces
{ {
public interface ICircle public interface ICircle
{ {

View File

@ -1,9 +1,8 @@
namespace Yavsc.Models namespace Yavsc.Interfaces
{ {
public interface ICircleMember public interface ICircleMember: IIdentified<long>
{ {
ICircle Circle { get; set; } ICircle Circle { get; set; }
long Id { get; set; }
IApplicationUser Member { get; set; } IApplicationUser Member { get; set; }
} }
} }

View File

@ -1,4 +1,4 @@
namespace Yavsc.Models namespace Yavsc.Interfaces
{ {
public interface IContact public interface IContact
{ {

View File

@ -1,4 +1,4 @@
namespace Yavsc.Models.Identity namespace Yavsc.Interfaces
{ {
public interface IGCMDeclaration public interface IGCMDeclaration
{ {

View File

@ -0,0 +1,10 @@
using System;
namespace Yavsc.Interfaces
{
public interface ILifeTime
{
DateTime Modified { get; set; }
DateTime Posted { get; set; }
}
}

View File

@ -1,4 +1,4 @@
namespace Yavsc namespace Yavsc.Interfaces
{ {
public interface ILocation public interface ILocation
{ {

View File

@ -1,4 +1,4 @@
namespace Yavsc namespace Yavsc.Interfaces
{ {
public interface IPosition public interface IPosition
{ {

View File

@ -24,7 +24,7 @@ namespace Yavsc.Interfaces
/// <summary> /// <summary>
/// I rating. /// I rating.
/// </summary> /// </summary>
public interface IRating: IIdentified<long> public interface IRating<TK>: IIdentified<TK>
{ {
/// <summary> /// <summary>
/// Gets or sets the rate. /// Gets or sets the rate.

View File

@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Interfaces;
namespace Yavsc.Models namespace Yavsc.Models
{ {

View File

@ -22,7 +22,7 @@ namespace Yavsc.ViewModels.Manage
public long PostsCounter { get; set; } public long PostsCounter { get; set; }
public IAccountBalance Balance { get; set; } public AccountBalance Balance { get; set; }
public long ActiveCommandCount { get; set; } public long ActiveCommandCount { get; set; }