wip social

This commit is contained in:
Paul Schneider 2016-11-01 23:22:46 +01:00
commit efc1a80e5b
9 changed files with 245 additions and 50 deletions

View file

@ -12,6 +12,7 @@ using Yavsc.Models.OAuth;
using Yavsc.Models.Workflow;
using Yavsc.Models.Identity;
using Yavsc.Models.Market;
using Yavsc.Model;
namespace Yavsc.Models
{
@ -182,5 +183,7 @@ namespace Yavsc.Models
public DbSet<EstimateTemplate> EstimateTemplates { get; set; }
public DbSet<Contact> Contacts { get; set; }
public DbSet<ClientProviderInfo> ClientProviderInfo { get; set; }
}
}

View file

@ -0,0 +1,10 @@
namespace Yavsc.Model.Chat
{
public class Connection
{
public string ConnectionID { get; set; }
public string UserAgent { get; set; }
public bool Connected { get; set; }
}
}

View file

@ -4,6 +4,7 @@ using Microsoft.AspNet.Identity.EntityFramework;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Identity;
using Yavsc.Model.Chat;
namespace Yavsc.Models
{
@ -53,6 +54,9 @@ namespace Yavsc.Models
[InverseProperty("DeviceOwner")]
public virtual List<GoogleCloudMobileDeclaration> Devices { get; set; }
public ICollection<Connection> Connections { get; set; }
/// <summary>
/// User's circles
/// </summary>

View file

@ -1,14 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Model
{
public class ClientProviderInfo
{
public string UserName { get; set; }
public string Avatar { get; set; }
[Key]
public string UserId { get; set; }
public int Rate { get; set; }
public string EMail { get; set; }
public string Phone { get; set; }
public Location BillingAddress { get; set; }
public string ChatHubConnectionId { get; set; }
}
}