diff --git a/Yavsc/Interfaces/IAccountBalance.cs b/Yavsc/Interfaces/IAccountBalance.cs index 437e6020..9579903a 100644 --- a/Yavsc/Interfaces/IAccountBalance.cs +++ b/Yavsc/Interfaces/IAccountBalance.cs @@ -1,4 +1,4 @@ -namespace Yavsc.Models +namespace Yavsc.Interfaces { public interface IAccountBalance { diff --git a/Yavsc/Interfaces/IApplicationUser.cs b/Yavsc/Interfaces/IApplicationUser.cs index 9539fd40..c1da97c7 100644 --- a/Yavsc/Interfaces/IApplicationUser.cs +++ b/Yavsc/Interfaces/IApplicationUser.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Yavsc.Models.Identity; -namespace Yavsc.Models +namespace Yavsc.Interfaces { public interface IApplicationUser { diff --git a/Yavsc/Interfaces/IBlog.cs b/Yavsc/Interfaces/IBlog.cs index 6e05bf37..790df7c7 100644 --- a/Yavsc/Interfaces/IBlog.cs +++ b/Yavsc/Interfaces/IBlog.cs @@ -1,17 +1,11 @@ -using System; - -namespace Yavsc.Models +namespace Yavsc.Interfaces { - public interface IBlog + public interface IBlog: IIdentified, IRating, 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; } } } \ No newline at end of file diff --git a/Yavsc/Interfaces/ICircle.cs b/Yavsc/Interfaces/ICircle.cs index f0240ab0..a61f5679 100644 --- a/Yavsc/Interfaces/ICircle.cs +++ b/Yavsc/Interfaces/ICircle.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Yavsc.Models +namespace Yavsc.Interfaces { public interface ICircle { diff --git a/Yavsc/Interfaces/ICircleMember.cs b/Yavsc/Interfaces/ICircleMember.cs index 1bf99206..74528828 100644 --- a/Yavsc/Interfaces/ICircleMember.cs +++ b/Yavsc/Interfaces/ICircleMember.cs @@ -1,9 +1,8 @@ -namespace Yavsc.Models +namespace Yavsc.Interfaces { - public interface ICircleMember + public interface ICircleMember: IIdentified { ICircle Circle { get; set; } - long Id { get; set; } IApplicationUser Member { get; set; } } } \ No newline at end of file diff --git a/Yavsc/Interfaces/IContact.cs b/Yavsc/Interfaces/IContact.cs index 8c6fb536..8be32e5f 100644 --- a/Yavsc/Interfaces/IContact.cs +++ b/Yavsc/Interfaces/IContact.cs @@ -1,4 +1,4 @@ -namespace Yavsc.Models +namespace Yavsc.Interfaces { public interface IContact { diff --git a/Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs b/Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs index 9ea3033c..2eb1d9b8 100644 --- a/Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs +++ b/Yavsc/Interfaces/IGoogleCloudMobileDeclaration.cs @@ -1,4 +1,4 @@ -namespace Yavsc.Models.Identity +namespace Yavsc.Interfaces { public interface IGCMDeclaration { diff --git a/Yavsc/Interfaces/ILifeTime.cs b/Yavsc/Interfaces/ILifeTime.cs new file mode 100644 index 00000000..fd82fefb --- /dev/null +++ b/Yavsc/Interfaces/ILifeTime.cs @@ -0,0 +1,10 @@ +using System; + +namespace Yavsc.Interfaces +{ + public interface ILifeTime + { + DateTime Modified { get; set; } + DateTime Posted { get; set; } + } +} diff --git a/Yavsc/Interfaces/ILocation.cs b/Yavsc/Interfaces/ILocation.cs index e3cc65e3..614fa86a 100644 --- a/Yavsc/Interfaces/ILocation.cs +++ b/Yavsc/Interfaces/ILocation.cs @@ -1,4 +1,4 @@ -namespace Yavsc +namespace Yavsc.Interfaces { public interface ILocation { diff --git a/Yavsc/Interfaces/IPosition.cs b/Yavsc/Interfaces/IPosition.cs index 99b97bc7..d2b3dcc5 100644 --- a/Yavsc/Interfaces/IPosition.cs +++ b/Yavsc/Interfaces/IPosition.cs @@ -1,4 +1,4 @@ -namespace Yavsc +namespace Yavsc.Interfaces { public interface IPosition { diff --git a/Yavsc/Interfaces/IRating.cs b/Yavsc/Interfaces/IRating.cs index 9a34ebe7..496739f7 100644 --- a/Yavsc/Interfaces/IRating.cs +++ b/Yavsc/Interfaces/IRating.cs @@ -24,7 +24,7 @@ namespace Yavsc.Interfaces /// /// I rating. /// - public interface IRating: IIdentified + public interface IRating: IIdentified { /// /// Gets or sets the rate. diff --git a/Yavsc/Model/Bank/AccountBalance.cs b/Yavsc/Model/Bank/AccountBalance.cs index 5fff2c53..8070f37b 100644 --- a/Yavsc/Model/Bank/AccountBalance.cs +++ b/Yavsc/Model/Bank/AccountBalance.cs @@ -1,5 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using Yavsc.Interfaces; namespace Yavsc.Models { diff --git a/Yavsc/ViewModels/Manage/IndexViewModel.cs b/Yavsc/ViewModels/Manage/IndexViewModel.cs index c6a8c25d..1b12c792 100644 --- a/Yavsc/ViewModels/Manage/IndexViewModel.cs +++ b/Yavsc/ViewModels/Manage/IndexViewModel.cs @@ -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; }