refabrique:
* Nouvel espace de noms: Yavsc.Interfaces * Nouvelle interface : ILifeTime * Factorisation
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
namespace Yavsc.Models
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface IAccountBalance
|
public interface IAccountBalance
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Yavsc.Models
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface ICircle
|
public interface ICircle
|
||||||
{
|
{
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
namespace Yavsc.Models
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface IContact
|
public interface IContact
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace Yavsc.Models.Identity
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface IGCMDeclaration
|
public interface IGCMDeclaration
|
||||||
{
|
{
|
||||||
|
10
Yavsc/Interfaces/ILifeTime.cs
Normal file
10
Yavsc/Interfaces/ILifeTime.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Yavsc.Interfaces
|
||||||
|
{
|
||||||
|
public interface ILifeTime
|
||||||
|
{
|
||||||
|
DateTime Modified { get; set; }
|
||||||
|
DateTime Posted { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
namespace Yavsc
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface ILocation
|
public interface ILocation
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
namespace Yavsc
|
namespace Yavsc.Interfaces
|
||||||
{
|
{
|
||||||
public interface IPosition
|
public interface IPosition
|
||||||
{
|
{
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user