forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetadataDtoIssue.cs
More file actions
53 lines (43 loc) · 1.33 KB
/
MetadataDtoIssue.cs
File metadata and controls
53 lines (43 loc) · 1.33 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
using System;
using ServiceStack;
using ServiceStack.DataAnnotations;
namespace Check.ServiceInterface
{
[Route("/api/acsprofiles", "POST,PUT,PATCH,DELETE")]
[Route("/api/acsprofiles/{profileId}")]
[Alias("ACSProfiles")]
public class ACSProfile : IReturn<acsprofileResponse>, IHasVersion, IHasSessionId
{
[PrimaryKey]
public string profileId { get; set; }
[Required]
[StringLength(20)]
public string shortName { get; set; }
[StringLength(60)]
public string longName { get; set; }
[StringLength(20)]
[Index(Unique = false)]
public string regionId { get; set; }
[StringLength(20)]
[Index(Unique = false)]
public string groupId { get; set; }
[StringLength(12)]
[Index(Unique = false)]
public string deviceID { get; set; }
public DateTime lastUpdated { get; set; }
public bool enabled { get; set; }
public int Version { get; set; }
public string SessionId { get; set; }
}
public class acsprofileResponse
{
public string profileId { get; set; }
}
public class ACSProfileService : Service
{
public object Any(ACSProfile request)
{
return new acsprofileResponse { profileId = request.profileId };
}
}
}