PageRenderTime 6ms CodeModel.GetById 3ms app.highlight 0ms RepoModel.GetById 3ms app.codeStats 0ms

/Note.j

http://github.com/chollier/Edgar
Unknown | 33 lines | 28 code | 5 blank | 0 comment | 0 complexity | 38b8b517aeb450514c5d766253cab5ac MD5 | raw file
 1@import <CappuccinoResource/CRBase.j>
 2
 3@implementation Note : CappuccinoResource
 4{
 5	CPNumber client_id @accessors;
 6	CPNumber staff_id @accessors;
 7	CPNumber note @accessors;
 8	CPString type @accessors;
 9	
10	CPNumber code_session_id @accessors;
11	CPNumber plateau_session_id @accessors;
12		
13	CPDate created_at;
14	CPDate updated_at;
15}
16
17-(JSObject)attributes
18{
19	return {
20		"note": {
21			"client_id":client_id,
22			"staff_id":staff_id,
23			"note":note,
24			"type":type,
25			"code_session_id":code_session_id,
26			"plateau_session_id":plateau_session_id,
27			"created_at":[created_at toDateString],
28			"updated_at":[updated_at toDateString]
29		}
30	}
31}
32
33@end