Skip to content

Instantly share code, notes, and snippets.

@Fodsuk
Created March 26, 2013 15:10
Show Gist options
  • Save Fodsuk/5246100 to your computer and use it in GitHub Desktop.
Save Fodsuk/5246100 to your computer and use it in GitHub Desktop.
Getting better
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