Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created December 15, 2015 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loretoparisi/cd9e06fa51e9a0784a92 to your computer and use it in GitHub Desktop.
Save loretoparisi/cd9e06fa51e9a0784a92 to your computer and use it in GitHub Desktop.
Sample Swift class (Remobjects cross-library test)
import Sugar
public class MiaClasse2 {
public func add (var a: Int, var b: Int) -> Int {
return a + b;
}
public func diff( var a:Int, var b:Int) -> Int {
return (a>b ? a-b : b-a);
}
public func httpCall(var url: String )
{
println(url);
Http.ExecuteRequest(Url( url ), { response in
println( "RISPOSTA:"+response);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment