Created
March 26, 2013 15:10
-
-
Save Fodsuk/5246100 to your computer and use it in GitHub Desktop.
Getting better
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Vanquis.Services.Communication.Contracts.ServiceContracts | |
{ | |
//Templates | |
public interface ITemplateService | |
{ | |
List<Template> GetAllTemplates(); | |
List<TemplateParameter> GetTemplateParameters(int templateId); | |
} | |
public class Template | |
{ | |
public string Name { get; set; } | |
public TemplateType TemplateType { get; set; } | |
public DateTime Created { get; set; } | |
} | |
public class TemplateParameter | |
{ | |
public int ParameterId { get; set; } | |
public string Name { get; set; } | |
public string DefaultValue { get; set; } | |
} | |
public enum TemplateType | |
{ | |
Sms = 1, | |
Email = 2, | |
Attachment = 3 | |
} | |
//Flows | |
public interface IFlowService | |
{ | |
List<FlowParameter> GetFlowParameters(int flowId); | |
List<Flow> GetFlowsUsingTemplate(int templateId); | |
} | |
public class FlowParameter | |
{ | |
public int ParameterId { get; set; } | |
public string Name { get; set; } | |
public DateTime Created { get; set; } | |
} | |
public class Flow | |
{ | |
public int FlowId { get; set; } | |
public string Name { get; set; } | |
public DateTime Created { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment