locality_social_cloud_friendlist 1.4.0
locality_social_cloud_friendlist: ^1.4.0 copied to clipboard
A simple FriendList for FriendsList-Syndication based on Locality Social Cloud. Send, receive and accept FriendRequests.
example/locality_social_cloud_friendlist_example.dart
import 'package:flutter_test/flutter_test.dart';
import 'package:locality_core/locality_core.dart';
import 'package:locality_social_cloud_friendlist/friend_list.dart';
import 'package:locality_social_cloud_friendlist/friend_list_facade.dart';
class Logger {
void log(String message) {
// ADD A PRINT STATEMENT HERE
}
void info(String message) {
log('INFO: $message');
}
void error(String message) {
log('ERROR: $message');
}
void debug(String message) {
log('DEBUG: $message');
}
}
void main() {
final Logger logger = Logger(); // Create an instance of the logger
test('adds one to input values', () async {
LocalitySocialCloud cloud = await LocalitySocialCloud.startTest(
userCredentials: UserCredentials("userId", "password"),
developerCredentials: DeveloperCredentials(
realmId: "realmId", realmSecret: "realmSecret"),
isRegistration: true);
FriendList friendList = await FriendListFacade.getFriendListOfUser(
cloud.getLoggedInUser().publicUser);
});
}