C# Class BitServer.Bitmessage

ファイルを表示 Open project: AyrA/BitMailServer Class Usage Examples

Public Methods

Method Description
B64dec ( string s ) : string

Converts from/to Base64

B64enc ( string s ) : string

Converts from/to Base64

ParseAddress ( string p, bool allowBroadcast ) : string

Returns the bitmessage address, BROADCAST or null if invalid address.

Send ( BitAPI API, string From, string To, string Subject, string Message ) : void

Sends a bitmessage

generateAddress ( BitAPI BA, string label ) : string

Generates a BitMessage Address

generateAddress ( BitAPI BA, string passphrase, string label ) : string

Generates a deterministic BitMessage Address

getAddresses ( BitAPI BA ) : BitServer.BitAddr[]

Returns a list of all Addresses

getMessages ( BitAPI BA ) : BitServer.BitMsg[]

List of all Bitmessage Messages in Inbox

getSubscriptions ( BitAPI BA ) : BitServer.Subscription[]

Method Details

B64dec() public static method

Converts from/to Base64
public static B64dec ( string s ) : string
s string Autodetected Input string
return string

B64enc() public static method

Converts from/to Base64
public static B64enc ( string s ) : string
s string Autodetected Input string
return string

ParseAddress() public static method

Returns the bitmessage address, BROADCAST or null if invalid address.
public static ParseAddress ( string p, bool allowBroadcast ) : string
p string E-Mail Address to check
allowBroadcast bool true, if broadcast address is valid
return string

Send() public static method

Sends a bitmessage
public static Send ( BitAPI API, string From, string To, string Subject, string Message ) : void
API BitAPI Bitmessage API
From string Sender
To string Receiver (broadcast allowed)
Subject string Message Subject
Message string Message Body
return void

generateAddress() public static method

Generates a BitMessage Address
public static generateAddress ( BitAPI BA, string label ) : string
BA BitAPI API
label string Address label
return string

generateAddress() public static method

Generates a deterministic BitMessage Address
public static generateAddress ( BitAPI BA, string passphrase, string label ) : string
BA BitAPI API
passphrase string Passphrase
label string Address label
return string

getAddresses() public static method

Returns a list of all Addresses
public static getAddresses ( BitAPI BA ) : BitServer.BitAddr[]
BA BitAPI Bitmessage API
return BitServer.BitAddr[]

getMessages() public static method

List of all Bitmessage Messages in Inbox
public static getMessages ( BitAPI BA ) : BitServer.BitMsg[]
BA BitAPI BitAPI object
return BitServer.BitMsg[]

getSubscriptions() public static method

public static getSubscriptions ( BitAPI BA ) : BitServer.Subscription[]
BA BitAPI
return BitServer.Subscription[]