mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
open source Notesnook API
This commit is contained in:
16
Streetwriters.Common/Interfaces/IClient.cs
Normal file
16
Streetwriters.Common/Interfaces/IClient.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Streetwriters.Common.Enums;
|
||||
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
public interface IClient
|
||||
{
|
||||
string Id { get; set; }
|
||||
string Name { get; set; }
|
||||
string[] ProductIds { get; set; }
|
||||
ApplicationType Type { get; set; }
|
||||
ApplicationType AppId { get; set; }
|
||||
string SenderEmail { get; set; }
|
||||
string SenderName { get; set; }
|
||||
string WelcomeEmailTemplateId { get; set; }
|
||||
}
|
||||
}
|
||||
10
Streetwriters.Common/Interfaces/IDocument.cs
Normal file
10
Streetwriters.Common/Interfaces/IDocument.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
public interface IDocument
|
||||
{
|
||||
string Id
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Streetwriters.Common/Interfaces/IMessageHandler.cs
Normal file
10
Streetwriters.Common/Interfaces/IMessageHandler.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Threading.Tasks;
|
||||
using Streetwriters.Common.Interfaces;
|
||||
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
public interface IMessageHandler<T>
|
||||
{
|
||||
Task Process(T message);
|
||||
}
|
||||
}
|
||||
13
Streetwriters.Common/Interfaces/IOffer.cs
Normal file
13
Streetwriters.Common/Interfaces/IOffer.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using Streetwriters.Common.Enums;
|
||||
using Streetwriters.Common.Models;
|
||||
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
public interface IOffer : IDocument
|
||||
{
|
||||
ApplicationType AppId { get; set; }
|
||||
string PromoCode { get; set; }
|
||||
PromoCode[] Codes { get; set; }
|
||||
}
|
||||
}
|
||||
8
Streetwriters.Common/Interfaces/IResponse.cs
Normal file
8
Streetwriters.Common/Interfaces/IResponse.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
public interface IResponse
|
||||
{
|
||||
bool Success { get; set; }
|
||||
int StatusCode { get; set; }
|
||||
}
|
||||
}
|
||||
22
Streetwriters.Common/Interfaces/ISubscription.cs
Normal file
22
Streetwriters.Common/Interfaces/ISubscription.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using Streetwriters.Common.Attributes;
|
||||
using Streetwriters.Common.Converters;
|
||||
using Streetwriters.Common.Enums;
|
||||
using Streetwriters.Common.Models;
|
||||
|
||||
namespace Streetwriters.Common.Interfaces
|
||||
{
|
||||
[JsonInterfaceConverter(typeof(InterfaceConverter<ISubscription, Subscription>))]
|
||||
public interface ISubscription : IDocument
|
||||
{
|
||||
string UserId { get; set; }
|
||||
ApplicationType AppId { get; set; }
|
||||
SubscriptionProvider Provider { get; set; }
|
||||
long StartDate { get; set; }
|
||||
long ExpiryDate { get; set; }
|
||||
SubscriptionType Type { get; set; }
|
||||
string OrderId { get; set; }
|
||||
string SubscriptionId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user