Subversion Repositories SmartDukaan

Rev

Rev 30 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements. See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership. The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License. You may obtain a copy of the License at
9
 *
10
 *   http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing,
13
 * software distributed under the License is distributed on an
14
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 * KIND, either express or implied. See the License for the
16
 * specific language governing permissions and limitations
17
 * under the License.
18
 */
19
 
20
 
21
namespace rb TestNamespace
22
 
23
struct Goodbyez {
24
  1: i32 val = 325;
25
}
26
 
27
senum Thinger {
28
  "ASDFKJ",
29
  "r32)*F#@",
30
  "ASDFLJASDF"
31
}
32
 
33
struct BoolPasser {
34
  1: bool value = 1
35
}
36
 
37
struct Hello {
38
  1: i32 simple = 53,
39
  2: map<i32,i32> complex = {23:532, 6243:632, 2355:532},
40
  3: map<i32, map<i32,i32>> complexer,
41
  4: string words = "words",
42
  5: Goodbyez thinz = {'val' : 36632}
43
}
44
 
45
const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} }
46
const i32 CINT = 325;
47
const Hello WHOA = {'simple' : 532}
48
 
49
exception Goodbye {
50
  1: i32 simple,
51
  2: map<i32,i32> complex,
52
  3: map<i32, map<i32,i32>> complexer,
53
}
54
 
55
service SmallService {
56
  Thinger testThinger(1:Thinger bootz),
57
  Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g),
58
  void testVoid() throws (1: Goodbye g),
59
  i32 testI32(1:i32 boo)
60
}