Created
December 15, 2015 11:10
-
-
Save loretoparisi/cd9e06fa51e9a0784a92 to your computer and use it in GitHub Desktop.
Sample Swift class (Remobjects cross-library test)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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