MushroomDick-SDK

A library for Dart developers.

Created from templates made available by Stagehand under a GPL-3.0 License-style license.

Usage

A simple usage example:

import 'package:mushroom_dick/src/mushroom_dick_base.dart';
import 'package:mushroom_dick/src/mushroom_dick.dart';
import 'package:mushroom_dick/mushroom_dick_types.dart';

String username = '';
String password = '';

Future<void> main(List<String> args) async {
  if(args.contains('procedure')) {
    await procedureMode();
  } else {
    await objectMode();
  }
}

Future<void> procedureMode() async {
  var mushroom = MushroomDickBase();
  var user = await mushroom.login(username: username, password: password);
  var plans = (await mushroom.getPlanId(token: user['data']['token']))['data'];
  print(await mushroom.signIn(token: user['data']['token'], type: MushRoomDickType.START_WORK,planId: plans[0]['id']));
}

Future<void> objectMode() async {
  var student = await MushroomDick.login(username: username, password: password);
  var plans = await student.planList();
  print(await plans[0].signIn(type: MushRoomDickType.START_WORK));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

config
mushroom_dick
Support for doing something awesome. [...]
mushroom_dick
Support for doing something awesome. [...]
mushroom_dick_types