refactoring & Activities update

This commit is contained in:
Paul Schneider 2017-02-07 15:04:58 +01:00
commit 28c53cc2ee
19 changed files with 5740 additions and 114 deletions

View file

@ -4,6 +4,8 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Access
{
using YavscLib;
public class Ban : IBaseTrackedEntity
{
public DateTime DateCreated
@ -29,4 +31,4 @@ namespace Yavsc.Models.Access
get; set;
}
}
}
}

View file

@ -5,12 +5,14 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.OAuth;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Yavsc.Models.Relationship;
using Yavsc.Models.Forms;
using System.Web;
using System.Threading;
namespace Yavsc.Models
{
using Relationship;
using Forms;
using YavscLib;
using Auth;
using Billing;
using Booking;
@ -21,9 +23,7 @@ namespace Yavsc.Models
using Chat;
using Messaging;
using Access;
using Yavsc.Models.Booking.Profiles;
using System.Web;
using System.Threading;
using Booking.Profiles;
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{

View file

@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
using YavscLib;
public partial class AccountBalance: IAccountBalance {
[Key]
@ -17,4 +18,4 @@ namespace Yavsc.Models
public long ContactCredits { get; set; }
}
}
}

View file

@ -2,12 +2,13 @@ using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using Yavsc.Models.Workflow;
namespace Yavsc.Models.Booking
{
using YavscLib;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using Yavsc.Models.Workflow;
/// <summary>
/// Query, for a date, with a given perfomer, at this given place.
/// </summary>
@ -57,4 +58,4 @@ namespace Yavsc.Models.Booking
public virtual Activity Context  { get; set ; }
}
}
}

View file

@ -1,64 +0,0 @@
//
// GCMRegisterModel.cs
//
// Author:
// paul <>
//
// Copyright (c) 2015 paul
//
// 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/>.
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Google.Messaging
{
/// <summary>
/// GCM register model.
/// </summary>
public class GCMRegisterModel {
/// <summary>
/// Gets or sets the name of the user.
/// </summary>
/// <value>The name of the user.</value>
[Localizable(true)]
[Display(Name="UserName")]
[Required(ErrorMessage = "S'il vous plait, entrez un nom d'utilisateur")]
public string UserName { get; set; }
/// <summary>
/// Gets or sets the password.
/// </summary>
/// <value>The password.</value>
[DisplayName("Mot de passe")]
[Required(ErrorMessage = "S'il vous plait, entez un mot de passe")]
public string Password { get; set; }
/// <summary>
/// Gets or sets the email.
/// </summary>
/// <value>The email.</value>
[DisplayName("Adresse e-mail")]
[Required(ErrorMessage = "S'il vous plait, entrez un e-mail valide")]
public string Email { get; set; }
/// <summary>
/// Gets or sets the registration identifier against Google Clood Messaging and their info on this application.
/// </summary>
/// <value>The registration identifier.</value>
public string RegistrationId { get; set; }
}
}

View file

@ -5,7 +5,13 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Identity
{
[JsonObject]
using YavscLib;
[JsonObject]
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
public DateTime? LatestActivityUpdate { get; set; }
}
public class GoogleCloudMobileDeclaration {
@ -22,8 +28,8 @@ namespace Yavsc.Models.Identity
public DateTime DeclarationDate { get; set; }
[JsonIgnore,ForeignKey("DeviceOwnerId")]
public virtual ApplicationUser DeviceOwner { get; set; }
public DateTime LatestActivityUpdate { get; set; }
}
}

View file

@ -1,11 +1,12 @@
using System;
using Yavsc.Interfaces.Workflow;
using Yavsc.Models.Market;
namespace Yavsc.Models.Workflow
{
using Interfaces.Workflow;
using Models.Market;
using YavscLib;
public class Query<P>: IBaseTrackedEntity where P : BaseProduct
public class Query<P>: IBaseTrackedEntity where P : BaseProduct
{
public DateTime DateCreated
{