You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.1 KiB
70 lines
2.1 KiB
// Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
|
// Use of this source code is governed by a MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef IMMANAGER_H
|
|
#define IMMANAGER_H
|
|
|
|
#include "../FLTService.h"
|
|
#include "Listen.h"
|
|
|
|
|
|
|
|
class IMManagerService : public FLTService {
|
|
public:
|
|
IMManagerService();
|
|
virtual void onMethodCalled(
|
|
const std::string& method, const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result)
|
|
override;
|
|
|
|
private:
|
|
void initializeSDK(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void unInitSDK(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void login(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void logout(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void getLoginStatus(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void uploadFile(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void uploadLogs(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void logs(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void updateFcmToken(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void setAppBackgroundStatus(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
void networkStatusChanged(
|
|
const flutter::EncodableMap* arguments,
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IMMANAGER_H
|
|
|