Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created March 3, 2010 17:10
Show Gist options
  • Save migueldeicaza/320765 to your computer and use it in GitHub Desktop.
Save migueldeicaza/320765 to your computer and use it in GitHub Desktop.
in enums.cs:
public enum AccountType {
ALE = 0x736970
}
in iface.cs:
[BaseType (typeof (NSObject))]
interface AccountSettings {
}
[BaseType (typeof (NSObject))]
interface Account {
[Static, Export ("createAccountType:withSettings:")]
Account Create (AccountType type, AccountSettings settings);
[Export ("getSettings")]
AccountSettings Settings {get;}
}
[BaseType (typeof (NSObject)), Model]
interface AleAccountListener {
}
[BaseType (typeof (NSObject))]
interface AleAccount {
[Export ("setAccountListener:")]
void SetListener (AleAccountListener sil);
[Export ("connect:")]
void Connect (uint expires);
[Export ("disconnect")]
void Disconnect ();
[Export ("disconnectAll")]
void DisconnectAll ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment