81 lines
3.0 KiB
C#
81 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sarand.PatientMgr.Core.WebService
|
|
{
|
|
//=======================================================================
|
|
public static class SpmWebServiceDfn
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Web Service XML element names.
|
|
public class ElementNameData
|
|
{
|
|
// Common.
|
|
public String Data { get; } = "Data";
|
|
public String List { get; } = "List";
|
|
public String Item { get; } = "Item";
|
|
public String Filter { get; } = "Filter";
|
|
public String Property { get; } = "Property";
|
|
public String Columns { get; } = "Columns";
|
|
public String SortColumns { get; } = "SortColumns";
|
|
public String SortColumn { get; } = "SortColumn";
|
|
// Request.
|
|
public String Config { get; } = "Config";
|
|
public String Context { get; } = "Context";
|
|
public String Site { get; } = "Site";
|
|
public String Host { get; } = "Host";
|
|
public String User { get; } = "User";
|
|
public String Email { get; } = "Email";
|
|
public String AffiliateIdOrganisation { get; } = "AffiliateIdOrganisation";
|
|
public String Debug { get; } = "Debug";
|
|
// Response.
|
|
public String SpmResponse { get; } = "SpmResponse";
|
|
public String Status { get; } = "Status";
|
|
public String Messages { get; } = "Messages";
|
|
public String Message { get; } = "Message";
|
|
public String Count { get; } = "Count";
|
|
// Item.
|
|
public String Id { get; } = "Id";
|
|
public String Code { get; } = "Code";
|
|
public String Notes { get; } = "Notes";
|
|
public String Flags { get; } = "Flags";
|
|
public String CreatedOn { get; } = "CreatedOn";
|
|
public String UpdatedOn { get; } = "UpdatedOn";
|
|
}
|
|
public static ElementNameData ElementName { get; } = new ElementNameData();
|
|
|
|
//-------------------------------------------------------------------
|
|
// Web Service XML attribute names.
|
|
public class AttributeNameData
|
|
{
|
|
// Common.
|
|
public String ItemType { get; } = "ItemType";
|
|
public String Name { get; } = "Name";
|
|
public String Value { get; } = "Value";
|
|
public String Code { get; } = "Code";
|
|
public String Debug { get; } = "Debug";
|
|
// Messages.
|
|
public String Context { get; } = "Context";
|
|
public String Level { get; } = "Level";
|
|
// Item list.
|
|
public String Total { get; } = "Total";
|
|
public String Count { get; } = "Count";
|
|
public String PageNo { get; } = "PageNo";
|
|
public String PageLength { get; } = "PageLength";
|
|
}
|
|
public static AttributeNameData AttributeName { get; } = new AttributeNameData();
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public static String IsAliveResponse { get; } = "Hello";
|
|
public static String StatusSuccess { get; } = "OK";
|
|
public static String StatusFatal { get; } = "Fatal";
|
|
public static String StatusError { get; } = "Error";
|
|
public static String StatusWarning { get; } = "Warning";
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|