1pub mod api;
2pub mod error;
3pub mod response;
4mod client;
5use api::{account::*, message::*};
6use client::Client as Clientx;
7
8#[derive(Clone)]
9pub struct Client {
10 client: Clientx
11}
12
13impl Client {
14 pub fn new<T: Into<String>>(sdkappid: u64, identifier: T, key: T) -> Client {
15 Client {client: Clientx::new(sdkappid, identifier, key)}
16 }
17
18 pub fn account(&self) -> AccountApi {
19 AccountApi::new(&self.client)
20 }
21
22 pub fn message(&self) -> MessageApi {
23 MessageApi::new(&self.client)
24 }
25}