rocket_chat_dart 0.0.38

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 75

Rocket.Chat.Dart.SDK

Similar to Rocket.Chat.Go.SDK and implement APIs according to the Rocket Chat document. This SDK could be use in both in server side and in flutter. Not sure that this works or not in the browser.

Pub Site

https://pub.dartlang.org/packages/rocket_chat_dart

Usage

  • Add rocket_chat_dart to your pubspec.yaml file's dependency.
  • run pub get or flutter packages get

0.0.38 (2018-12-09)

  • Upgrade dependency and refine them.

0.0.37 (2018-11-17)

  • Add Channels close
  • Add API for unsub a channel's messages.
  • Update ddp client to version 0.0.9.

0.0.36 (2018-11-13)

Feature:

0.0.35 (2018-11-13)

Feature:

  • Add list groups and ims

0.0.34 (2018-11-7)

Feature:

  • Fix realtime channel api wrong url

0.0.34 (2018-11-7)

Feature:

  • Fix realtime channel api wrong url

0.0.33 (2018-11-7)

Feature:

  • Add channel members api

0.0.32 (2018-11-6)

Feature:

  • Add channels api

0.0.31 (2018-10-27)

Feature:

  • Add react message.
  • Add Message's reactions fields

0.0.30 (2018-10-24)

Feature:

  • Add type for messsage
  • Fix send message response error
  • Leave group response change to void

0.0.29 (2018-10-21)

Features:

  • Update description of pubspec.yaml

0.0.28 (2018-10-21)

Features:

  • Fulfill description of pubspec.yaml

0.0.27 (2018-10-21)

Features:

  • Fulfill README.md

0.0.26 (2018-10-21)

Features:

  • Add CHANGELOG.md :P

0.0.17 to 0.0.25 (2018-10-21)

Features:

  • Hack response header Content-Type from application/json to application/json; charset=utf-8
  • Group members api
  • Add attachment field to message

0.0.6 to 0.0.16 (2018-10-07)

Features:

  • Add IM api
  • Add subscriptions rest call
  • Add rooms api
  • Use build_runner to generate Unmarshaller/marshaller for models

Bug Fixes:

  • Add missing JsonKey for models.
  • Add missing dependencies

0.0.4 and 0.0.5 (2018-09-30)

Features:

  • Change unread to int type.

0.0.3 (2018-09-26)

Bug Fixes:

  • Update ddp version.
  • DDP Log configurable.

0.0.2 (2018-09-26)

Features:

  • change collection update name.

0.0.1 (2018-09-22)

Features:

  • Draft edition

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  rocket_chat_dart: ^0.0.38

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:rocket_chat_dart/models/channel.dart';
import 'package:rocket_chat_dart/models/info.dart';
import 'package:rocket_chat_dart/models/message.dart';
import 'package:rocket_chat_dart/models/models.dart';
import 'package:rocket_chat_dart/models/models.g.dart';
import 'package:rocket_chat_dart/models/permissons.dart';
import 'package:rocket_chat_dart/models/user.dart';
import 'package:rocket_chat_dart/models/user_credentials.dart';
import 'package:rocket_chat_dart/realtime/channels.dart';
import 'package:rocket_chat_dart/realtime/client.dart';
import 'package:rocket_chat_dart/realtime/emoji.dart';
import 'package:rocket_chat_dart/realtime/events.dart';
import 'package:rocket_chat_dart/realtime/messages.dart';
import 'package:rocket_chat_dart/realtime/permissons.dart';
import 'package:rocket_chat_dart/realtime/subscriptions.dart';
import 'package:rocket_chat_dart/realtime/users.dart';
import 'package:rocket_chat_dart/rest/channels.dart';
import 'package:rocket_chat_dart/rest/chat.dart';
import 'package:rocket_chat_dart/rest/client.dart';
import 'package:rocket_chat_dart/rest/client.g.dart';
import 'package:rocket_chat_dart/rest/groups.dart';
import 'package:rocket_chat_dart/rest/im.dart';
import 'package:rocket_chat_dart/rest/rooms.dart';
import 'package:rocket_chat_dart/rest/subscriptions.dart';
import 'package:rocket_chat_dart/rest/users.dart';
  
Version Uploaded Documentation Archive
0.0.38 Dec 9, 2018 Go to the documentation of rocket_chat_dart 0.0.38 Download rocket_chat_dart 0.0.38 archive
0.0.37 Nov 17, 2018 Go to the documentation of rocket_chat_dart 0.0.37 Download rocket_chat_dart 0.0.37 archive
0.0.36 Nov 15, 2018 Go to the documentation of rocket_chat_dart 0.0.36 Download rocket_chat_dart 0.0.36 archive
0.0.35 Nov 13, 2018 Go to the documentation of rocket_chat_dart 0.0.35 Download rocket_chat_dart 0.0.35 archive
0.0.34 Nov 7, 2018 Go to the documentation of rocket_chat_dart 0.0.34 Download rocket_chat_dart 0.0.34 archive
0.0.33 Nov 7, 2018 Go to the documentation of rocket_chat_dart 0.0.33 Download rocket_chat_dart 0.0.33 archive
0.0.32 Nov 6, 2018 Go to the documentation of rocket_chat_dart 0.0.32 Download rocket_chat_dart 0.0.32 archive
0.0.31 Oct 27, 2018 Go to the documentation of rocket_chat_dart 0.0.31 Download rocket_chat_dart 0.0.31 archive
0.0.30 Oct 25, 2018 Go to the documentation of rocket_chat_dart 0.0.30 Download rocket_chat_dart 0.0.30 archive
0.0.29 Oct 21, 2018 Go to the documentation of rocket_chat_dart 0.0.29 Download rocket_chat_dart 0.0.29 archive

All 38 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
65
Health:
Code health derived from static analysis. [more]
87
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Dec 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, other

Platform components identified in package: io.

Health issues and suggestions

Document public APIs (-10 points)

284 out of 284 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Fix lib/realtime/users.dart. (-2.48 points)

Analysis of lib/realtime/users.dart reported 5 hints:

line 3 col 7: Name types using UpperCamelCase.

line 15 col 7: Name types using UpperCamelCase.

line 25 col 7: Name types using UpperCamelCase.

line 41 col 7: Name types using UpperCamelCase.

line 56 col 38: Equality operator == invocation with references of unrelated types.

Fix lib/models/models.g.dart. (-0.50 points)

Analysis of lib/models/models.g.dart reported 1 hint:

line 175 col 22: The function '_$ReactionItemToJson' isn't used.

Format lib/models/models.dart.

Run dartfmt to format lib/models/models.dart.

Format lib/realtime/subscriptions.dart.

Run dartfmt to format lib/realtime/subscriptions.dart.

Format lib/rest/channels.dart.

Run dartfmt to format lib/rest/channels.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use rocket_chat_dart.dart.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
crypto ^2.0.6 2.0.6
ddp ^0.0.9 0.0.9
http ^0.12.0 0.12.0
json_annotation ^2.0.0 2.0.0
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.0.2
http_parser 3.1.3
matcher 0.12.4
meta 1.1.6
mutex 1.0.1
path 1.6.2
quiver 2.0.1
source_span 1.4.1
sprintf 4.0.0
stack_trace 1.9.3
string_scanner 1.0.4
tuple 1.0.2
typed_data 1.1.6
Dev dependencies
build_runner ^1.0.0
json_serializable ^2.0.0
test ^1.3.0