C# Class Gchat.Utilities.GoogleTalkHelper

显示文件 Open project: gchatapp/gtalkchat Class Usage Examples

Public Methods

Method Description
AddRecentContact ( Contact contact ) : void
ChatLog ( string username ) : List
DownloadImage ( Contact contact, System.Action finished, System.Action error ) : void
GetOfflineMessages ( Gchat.Protocol.GoogleTalk cb ) : void
GetPinUri ( string email ) : Uri
GoogleLogin ( string username, string password, LoginCallback callback, ErrorCallback error ) : void
GoogleTalkHelper ( ) : System
IsContactPinned ( string email ) : bool
IsPaid ( ) : bool
Linkify ( string message ) : System.Windows.Documents.Paragraph
LoadRoster ( ) : void
LoginIfNeeded ( ) : void
Logout ( ) : void
PinContact ( string email ) : void
RawNotificationReceived ( string data ) : void
SetCorrectOrientation ( PhoneApplicationPage page ) : void
ShowToast ( Message m ) : void
ShowToast ( string message ) : void
ShowToast ( string message, string title ) : void
TokenUpdated ( ) : void
UriUpdated ( string uri ) : void

Private Methods

Method Description
AddWithFormat ( string text, System.Windows.Documents.Paragraph paragraph ) : void
FormatHelper ( string text, System.Windows.Documents.Paragraph paragraph, int i, int italics, int bold, int &pos, char character, int &checking ) : void
GracefulReLogin ( ) : void
NotifyMessageReceived ( Message message ) : void
Register ( string uri ) : void
Register ( string uri, bool keySet ) : void

Method Details

AddRecentContact() public method

public AddRecentContact ( Contact contact ) : void
contact Contact
return void

ChatLog() public method

public ChatLog ( string username ) : List
username string
return List

DownloadImage() public method

public DownloadImage ( Contact contact, System.Action finished, System.Action error ) : void
contact Contact
finished System.Action
error System.Action
return void

GetOfflineMessages() public method

public GetOfflineMessages ( Gchat.Protocol.GoogleTalk cb ) : void
cb Gchat.Protocol.GoogleTalk
return void

GetPinUri() public method

public GetPinUri ( string email ) : Uri
email string
return System.Uri

GoogleLogin() public static method

public static GoogleLogin ( string username, string password, LoginCallback callback, ErrorCallback error ) : void
username string
password string
callback LoginCallback
error ErrorCallback
return void

GoogleTalkHelper() public method

public GoogleTalkHelper ( ) : System
return System

IsContactPinned() public method

public IsContactPinned ( string email ) : bool
email string
return bool

IsPaid() public static method

public static IsPaid ( ) : bool
return bool

Linkify() public static method

public static Linkify ( string message ) : System.Windows.Documents.Paragraph
message string
return System.Windows.Documents.Paragraph

LoadRoster() public method

public LoadRoster ( ) : void
return void

LoginIfNeeded() public method

public LoginIfNeeded ( ) : void
return void

Logout() public method

public Logout ( ) : void
return void

PinContact() public method

public PinContact ( string email ) : void
email string
return void

RawNotificationReceived() public method

public RawNotificationReceived ( string data ) : void
data string
return void

SetCorrectOrientation() public method

public SetCorrectOrientation ( PhoneApplicationPage page ) : void
page PhoneApplicationPage
return void

ShowToast() public method

public ShowToast ( Message m ) : void
m Message
return void

ShowToast() public method

public ShowToast ( string message ) : void
message string
return void

ShowToast() public method

public ShowToast ( string message, string title ) : void
message string
title string
return void

TokenUpdated() public method

public TokenUpdated ( ) : void
return void

UriUpdated() public method

public UriUpdated ( string uri ) : void
uri string
return void