Subversion Repository Public Repository

ChrisCompleteCodeTrunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using Newtonsoft.Json;

/*
    {
        "id" : "<String>",
        "customerName" : "<STRING>",
    }
*/

namespace M3Workflow.Data.Base
{
    [JsonObject(Id = "UserCustomerObject", Title = "customer")]
    public sealed class UserCustomerObject
    {        
        [JsonProperty(Order = 1, PropertyName = "id", Required = Required.Always)]
        public Guid Id { get; set; }

        [JsonProperty(Order = 2, PropertyName = "customerName", Required = Required.Always)]
        public string CustomerName { get; set; }

        [JsonProperty(Order = 3, PropertyName = "cabinet", Required = Required.Always)]
        public string Cabinet { get; set; }

        public UserCustomerObject(Guid id, string customerName, string cabinet)
        {
            this.Id = id;
            this.CustomerName = customerName;
            this.Cabinet = cabinet;
        }
    }
}

Commits for ChrisCompleteCodeTrunk/M3Workflow/M3Workflow.Data/Base/UserCustomerObject.cs

Diff revisions: vs.
Revision Author Commited Message
1 BBDSCHRIS picture BBDSCHRIS Wed 22 Aug, 2018 20:08:03 +0000