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
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Models.Identity;
|
||||
|
||||
namespace Yavsc.Models
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IApplicationUser
|
||||
{
|
||||
|
@ -1,17 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Yavsc.Models
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IBlog
|
||||
public interface IBlog: IIdentified<long>, IRating<long>, ITitle, ILifeTime
|
||||
|
||||
{
|
||||
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; }
|
||||
string Content { get; set; }
|
||||
string Photo { get; set; }
|
||||
bool Visible { get; set; }
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Models
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
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; }
|
||||
long Id { get; set; }
|
||||
IApplicationUser Member { get; set; }
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace Yavsc.Models
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IContact
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace Yavsc.Models.Identity
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
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
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace Yavsc
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IPosition
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ namespace Yavsc.Interfaces
|
||||
/// <summary>
|
||||
/// I rating.
|
||||
/// </summary>
|
||||
public interface IRating: IIdentified<long>
|
||||
public interface IRating<TK>: IIdentified<TK>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the rate.
|
||||
|
@ -1,5 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Interfaces;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace Yavsc.ViewModels.Manage
|
||||
|
||||
public long PostsCounter { get; set; }
|
||||
|
||||
public IAccountBalance Balance { get; set; }
|
||||
public AccountBalance Balance { get; set; }
|
||||
|
||||
public long ActiveCommandCount { get; set; }
|
||||
|
||||
|
Reference in New Issue
Block a user