-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathAttributeGrabBag.cs
More file actions
68 lines (62 loc) · 2.5 KB
/
Copy pathAttributeGrabBag.cs
File metadata and controls
68 lines (62 loc) · 2.5 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using JSONAPI.Attributes;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace JSONAPI.Tests.Models
{
public enum SampleEnum
{
Value1 = 1,
Value2 = 2
}
public class SampleComplexType
{
[JsonProperty("intProp")]
public Int32 IntProp { get; set; }
public string StringProp { get; set; }
}
public class AttributeGrabBag
{
public string Id { get; set; }
public Boolean BooleanField { get; set; }
public Boolean? NullableBooleanField { get; set; }
public SByte SbyteField { get; set; }
public SByte? NullableSbyteField { get; set; }
public Byte ByteField { get; set; }
public Byte? NullableByteField { get; set; }
public Int16 Int16Field { get; set; }
public Int16? NullableInt16Field { get; set; }
public UInt16 Uint16Field { get; set; }
public UInt16? NullableUint16Field { get; set; }
public Int32 Int32Field { get; set; }
public Int32? NullableInt32Field { get; set; }
public UInt32 Uint32Field { get; set; }
public UInt32? NullableUint32Field { get; set; }
public Int64 Int64Field { get; set; }
public Int64? NullableInt64Field { get; set; }
public UInt64 Uint64Field { get; set; }
public UInt64? NullableUint64Field { get; set; }
public Double DoubleField { get; set; }
public Double? NullableDoubleField { get; set; }
public Single SingleField { get; set; }
public Single? NullableSingleField { get; set; }
public Decimal DecimalField { get; set; }
public Decimal? NullableDecimalField { get; set; }
public DateTime DateTimeField { get; set; }
public DateTime? NullableDateTimeField { get; set; }
public DateTimeOffset DateTimeOffsetField { get; set; }
public DateTimeOffset? NullableDateTimeOffsetField { get; set; }
public Guid GuidField { get; set; }
public Guid? NullableGuidField { get; set; }
public string StringField { get; set; }
public SampleEnum EnumField { get; set; }
public SampleEnum? NullableEnumField { get; set; }
[SerializeAsComplex]
public string ComplexAttributeField { get; set; }
[SerializeAsComplex]
public SampleComplexType ToOneComplexTypeField { get; set; }
[SerializeAsComplex]
public virtual ICollection<SampleComplexType> ToManyComplexTypeField { get; set; }
}
}