Skip to content

Instantly share code, notes, and snippets.

@bsideup
Created April 7, 2015 11:12
Show Gist options
  • Save bsideup/5c5fa178ffa5c8c8128b to your computer and use it in GitHub Desktop.
Save bsideup/5c5fa178ffa5c8c8128b to your computer and use it in GitHub Desktop.
namespace java.swift com.example.calculator.protocol
namespace java com.example.calculator.protocol
namespace py com.example.calculator.protocol
namespace as3 com.example.calculator.protocol
enum TOperation {
ADD, SUBTRACT, MULTIPLY, DIVIDE
}
exception TDivisionByZeroException {
}
service TCalculatorService {
i32 calculate(1: i32 arg0, 2: i32 arg1, 3: TOperation arg2) throws (1: TDivisionByZeroException ex1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment