A library for ebox husky protocol client.

pubspec.yaml

dependencies:
  huskyclient:
    git:
      url: git@gitlab.etsus.net
      ref: master

or simply use pub.dev

dependencies:
  huskyclient:

Usage

A simple usage example:

import 'package:huskyclient/huskyclient.dart';
import 'package:huskyclient/proto/dart/box/conversation.pb.dart';

void main() async {
    // create a native socket client. libzt client is under working
  var client = Native(
      hostAddr: '68.0.0.7:7777',
      token:
          'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdmYqKy6699SFbaLD4fNBHlT2pBc/cYC7MdoYPlldh+XGiu0yfdJTZ5GpSf+d6HT5nuuM4EwIoM/fjhkZiHUcBA==',
      uid: Int64(292));

  try {
    await client.connect();
  } catch (e) {
    print('exception in connect: $e');
  }

  var req = ListConversationRequest();

  var res = await client.send(ApiOperation.ListConversationOp, req);

  var rep = ListConversationResponse.fromBuffer(res.content);

  print('code: ${res.code}\nres: $res\nrep: $rep');

  await Future.delayed(Duration(seconds: 2)).then((value) => client.close());
  print('done');
}

Libraries

account.pb
account.pbenum
account.pbjson
account.pbserver
any.pb
any.pbenum
any.pbjson
any.pbserver
api.pb
api.pb
api.pbenum
api.pbenum
api.pbjson
api.pbjson
api.pbserver
api.pbserver
common.pb
common.pbenum
common.pbjson
common.pbserver
conversation.pb
conversation.pbenum
conversation.pbjson
conversation.pbserver
device.pb
device.pbenum
device.pbjson
device.pbserver
duration.pb
duration.pbenum
duration.pbjson
duration.pbserver
empty.pb
empty.pbenum
empty.pbjson
empty.pbserver
file.pb
file.pbenum
file.pbjson
file.pbserver
filetransfer.pb
filetransfer.pbenum
filetransfer.pbjson
filetransfer.pbserver
gateway.pb
gateway.pbenum
gateway.pbjson
gateway.pbserver
huskyclient
im.pb
im.pbenum
im.pbjson
im.pbserver
search.pb
search.pbenum
search.pbjson
search.pbserver
source_context.pb
source_context.pbenum
source_context.pbjson
source_context.pbserver
struct.pb
struct.pbenum
struct.pbjson
struct.pbserver
timeline.pb
timeline.pbenum
timeline.pbjson
timeline.pbserver
timestamp.pb
timestamp.pbenum
timestamp.pbjson
timestamp.pbserver
type.pb
type.pbenum
type.pbjson
type.pbserver