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 21namespace rb TestNamespace 22 23struct Goodbyez { 24 1: i32 val = 325; 25} 26 27struct BoolPasser { 28 1: bool value = 1 29} 30 31struct Hello { 32 1: i32 simple = 53, 33 2: map<i32,i32> complex = {23:532, 6243:632, 2355:532}, 34 3: map<i32, map<i32,i32>> complexer, 35 4: string words = "words", 36 5: Goodbyez thinz = {'val' : 36632} 37} 38 39const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} } 40const i32 CINT = 325; 41const Hello WHOA = {'simple' : 532} 42 43exception Goodbye { 44 1: i32 simple, 45 2: map<i32,i32> complex, 46 3: map<i32, map<i32,i32>> complexer, 47} 48 49struct Thinger { 50 1: i32 dummy 51} 52 53service SmallService { 54 Thinger testThinger(1:Thinger bootz), 55 Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g), 56 void testVoid() throws (1: Goodbye g), 57 i32 testI32(1:i32 boo) 58} 59