r1451@opsdev009 (orig r77106): dreiss | 2008-01-09 11:20:20 -0800
[amiethrift.git] / test / SmallTest.thrift
blob58357fe342696ab34dcbf33cf23c6f78a2401d5e
2 struct Goodbyez {
3   1: i32 val = 325;
6 senum Thinger {
7   "ASDFKJ",
8   "r32)*F#@",
9   "ASDFLJASDF"
12 struct Hello {
13   1: i32 simple = 53,
14   2: map<i32,i32> complex = {23:532, 6243:632, 2355:532},
15   3: map<i32, map<i32,i32>> complexer,
16   4: string words = "words",
17   5: Goodbyez thinz = {'val' : 36632}
20 const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} }
21 const i32 CINT = 325;
22 const Hello WHOA = {'simple' : 532}
24 exception Goodbye {
25   1: i32 simple,
26   2: map<i32,i32> complex,
27   3: map<i32, map<i32,i32>> complexer,  
30 service SmallService {
31   Thinger testThinger(1:Thinger bootz),
32   Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g),
33   void testVoid() throws (1: Goodbye g),
34   i32 testI32(1:i32 boo)