Merge branch 'master' of http://git2.aycode.com/Adam/AyCode.Core
This commit is contained in:
commit
cf2430da4b
|
|
@ -5,7 +5,7 @@ using System.Reflection.Emit;
|
|||
using System.Security.Principal;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AyCode.Entities.Interfaces;
|
||||
using AyCode.Interfaces.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
|
|
|||
|
|
@ -10,4 +10,8 @@
|
|||
<ProjectReference Include="..\AyCode.Interfaces\AyCode.Interfaces.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Interfaces\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using AyCode.Entities.Interfaces;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
using AyCode.Interfaces.Entities;
|
||||
|
||||
|
||||
namespace AyCode.Entities.Locations;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using AyCode.Interfaces.Messages;
|
||||
|
||||
namespace AyCode.Entities.Messages
|
||||
{
|
||||
[Table("Messages")]
|
||||
public class MessageBase : IMessageBase
|
||||
{
|
||||
|
||||
public MessageBase() { }
|
||||
|
||||
public MessageBase(Guid sender, Guid receiver, string message) : this(Guid.NewGuid(), sender, receiver, message) { }
|
||||
public MessageBase(Guid id, Guid sender, Guid receiver, string message) : this()
|
||||
{
|
||||
Id = id;
|
||||
Sender = sender;
|
||||
Receiver = receiver;
|
||||
Message = message;
|
||||
}
|
||||
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public Guid Sender { get; set; }
|
||||
|
||||
public Guid Receiver { get; set; }
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public Guid Id { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using AyCode.Entities.Interfaces;
|
||||
using AyCode.Interfaces;
|
||||
using AyCode.Interfaces;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
using AyCode.Interfaces.MediaInfo;
|
||||
using AyCode.Interfaces.Entities;
|
||||
|
||||
namespace AyCode.Entities.Profiles;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using AyCode.Entities.Interfaces;
|
||||
|
||||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace AyCode.Entities.Users;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AyCode.Entities.Interfaces
|
||||
|
||||
namespace AyCode.Interfaces.Entities
|
||||
{
|
||||
public interface IEntity
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace AyCode.Entities.Interfaces;
|
||||
namespace AyCode.Interfaces.Entities;
|
||||
|
||||
public interface IEntityGuid : IEntity<Guid>
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace AyCode.Entities.Interfaces;
|
||||
namespace AyCode.Interfaces.Entities;
|
||||
|
||||
public interface IEntityInt : IEntity<int>
|
||||
{
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace AyCode.Interfaces.Messages
|
||||
{
|
||||
public interface IMessageBase : IEntityGuid, ITimeStampInfo, IMessageParticipants
|
||||
{
|
||||
string Message { get; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
namespace AyCode.Interfaces.Messages
|
||||
{
|
||||
public interface IMessageParticipants : IMessageSender, IMessageReceiver
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
using AyCode.Interfaces.Entities;
|
||||
|
||||
namespace AyCode.Interfaces.Messages
|
||||
{
|
||||
public interface IMessageReceiver : IEntityGuid
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
using AyCode.Interfaces.Entities;
|
||||
|
||||
namespace AyCode.Interfaces.Messages
|
||||
{
|
||||
public interface IMessageSender : IEntityGuid
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
namespace AyCode.Interfaces.Messages
|
||||
{
|
||||
internal interface IMessageSenderService
|
||||
{
|
||||
public Task SendMessageAsync(IMessageBase message);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue