Tanoda
|
Classes | |
struct | ReturnError |
struct | WSCourse |
struct | WSCourses |
struct | WSFile |
struct | WSFiles |
struct | WSReturnCourse |
Public Member Functions | |
void | SetAdminToken () |
void | SaveToken (string token) |
IEnumerator | Login (string user, string pw, Action< UserManager.WSLogin > success, Action< string > fail) |
IEnumerator | LoginWithQR (string qr, Action< UserManager.WSLogin > success, Action< string > fail) |
void | AuthWebRequest (ref UnityWebRequest req) |
IEnumerator | CreateCurse (string name, string description, Action< WSCourse > success) |
IEnumerator | CreateQualityCurse (string name, string description, Action< WSCourse > success) |
IEnumerator | CreateDobotCurse (string name, string description, Action< WSCourse > success) |
string | Compress (string uncompressedString) |
string | Decompress (string compressedString) |
IEnumerator | SaveCourse (int id, string data, Action< WSCourse > success) |
IEnumerator | AddUsersToCourse (int[] userIds, int courseId, Action success) |
IEnumerator | GetMyCurses (Action< WSCourses > success) |
IEnumerator | GetQualityMyCurses (Action< WSCourses > success) |
IEnumerator | GetDobotMyCurses (Action< WSCourses > success) |
IEnumerator | GetGlobalFiles (Action< WSFiles > success) |
string | GetDataFromCourseNameInCache (string name) |
string | GetDataFromIdInCache (string id) |
WSCourse | GetCourseFromIdInCache (string id) |
IEnumerator | GetCurseByID (int id, Action< WSCourse > success) |
IEnumerator | DeleteCurseByID (int id, Action success) |
IEnumerator | DeleteFileByName (string fileName, Action success) |
IEnumerator | DeleteFileById (int fileId, Action success) |
IEnumerator | DeleteGlobalFileById (int fileId, Action success) |
IEnumerator | LoadAllFilesForThisCourse (Action success, Action< string > failed) |
IEnumerator | LoadAllGlobalFiles (Action success, Action< string > failed) |
string | WSFileToUrl (WSFile file) |
IEnumerator | GetAllFilesForThisCourse (Action< WSFiles > success, Action< string > failed) |
IEnumerator | GetUserById (int id, Action< UserManager.WSUser > success, Action< string > failed) |
IEnumerator | GetFile (string name, Action< byte[]> success) |
IEnumerator | UploadJson (UserManager.WSActions wsActions) |
IEnumerator | AddUser (string email, string name, int groupId, Action< UserManager.WSUser > success) |
IEnumerator | SetFilesToCourse (int[] fileIdArray, Action success=null) |
IEnumerator | SetFilesToCourse (int courseId, int[] fileIdArray, Action success=null) |
IEnumerator | GetAllUserWOAdmin (Action< UserManager.WSUsers > success) |
IEnumerator | UploadFileToCurrent (byte[] file, string filename, bool global, Action onSuccess, Action onFailed) |
IEnumerator | UploadFileToCurrent (byte[] file, string filename, bool global, Action< WSFile > onSuccess, Action onFailed) |
IEnumerator | UploadFileToCourse (int courseId, byte[] file, string filename, bool global, Action< WSFile > onSuccess, Action onFailed) |
IEnumerator | SetUserCourseStatus (int courseId, int userId, int courseTypeId, bool isSuccess, bool isFinished, float timeSpent, Action onSuccess, Action onFailed) |
IEnumerator | SetUserCourseStatus (int courseTypeId, bool isSuccess, bool isFinished, float timeSpent, Action onSuccess, Action onFailed) |
IEnumerator | UploadScreenshotCourse (byte[] file, Action onSuccess, Action onFailed) |
List< string > | CourseArrayToNameList (WSCourses courses, out List< int > ids) |
void | LoginTeszt () |
void | GetMyCursesTeszt () |
void | UploadTeszt () |
void | UploadTeszt2 () |
void | DeleteTeszt2 () |
void | GetMyCursesTesztLocal () |
void | UploadTolltarto () |
void | Teszt () |
Public Attributes | |
string | url |
string | demoUrl |
bool | forceDemo = false |
WSCourse | selectedLevel |
int | deleteFileID E:\quiz1.qiz" |
Protected Member Functions | |
override void | Awake () |
![]() | |
virtual void | Initialize () |
virtual void | Awake () |
Additional Inherited Members | |
![]() | |
virtual bool | dontDestroyOnLoad [get] |
Override to maintain an instance of this object across level loads. More... | |
static T | instance [get] |
static T | nullableInstance [get] |
Definition at line 17 of file NetworkManager.cs.
IEnumerator NetworkManager.AddUser | ( | string | email, |
string | name, | ||
int | groupId, | ||
Action< UserManager.WSUser > | success | ||
) |
Definition at line 967 of file NetworkManager.cs.
IEnumerator NetworkManager.AddUsersToCourse | ( | int[] | userIds, |
int | courseId, | ||
Action | success | ||
) |
Definition at line 436 of file NetworkManager.cs.
void NetworkManager.AuthWebRequest | ( | ref UnityWebRequest | req | ) |
Definition at line 227 of file NetworkManager.cs.
|
protectedvirtual |
If overriding, be sure to call base.Awake().
Reimplemented from GILES.pb_MonoBehaviourSingleton< NetworkManager >.
Definition at line 40 of file NetworkManager.cs.
string NetworkManager.Compress | ( | string | uncompressedString | ) |
Definition at line 327 of file NetworkManager.cs.
List< string > NetworkManager.CourseArrayToNameList | ( | WSCourses | courses, |
out List< int > | ids | ||
) |
Definition at line 1195 of file NetworkManager.cs.
IEnumerator NetworkManager.CreateCurse | ( | string | name, |
string | description, | ||
Action< WSCourse > | success | ||
) |
Definition at line 232 of file NetworkManager.cs.
IEnumerator NetworkManager.CreateDobotCurse | ( | string | name, |
string | description, | ||
Action< WSCourse > | success | ||
) |
Definition at line 295 of file NetworkManager.cs.
IEnumerator NetworkManager.CreateQualityCurse | ( | string | name, |
string | description, | ||
Action< WSCourse > | success | ||
) |
Definition at line 263 of file NetworkManager.cs.
string NetworkManager.Decompress | ( | string | compressedString | ) |
Definition at line 346 of file NetworkManager.cs.
IEnumerator NetworkManager.DeleteCurseByID | ( | int | id, |
Action | success | ||
) |
Definition at line 599 of file NetworkManager.cs.
IEnumerator NetworkManager.DeleteFileById | ( | int | fileId, |
Action | success | ||
) |
Definition at line 652 of file NetworkManager.cs.
IEnumerator NetworkManager.DeleteFileByName | ( | string | fileName, |
Action | success | ||
) |
Definition at line 619 of file NetworkManager.cs.
IEnumerator NetworkManager.DeleteGlobalFileById | ( | int | fileId, |
Action | success | ||
) |
Definition at line 692 of file NetworkManager.cs.
void NetworkManager.DeleteTeszt2 | ( | ) |
Definition at line 1360 of file NetworkManager.cs.
IEnumerator NetworkManager.GetAllFilesForThisCourse | ( | Action< WSFiles > | success, |
Action< string > | failed | ||
) |
Definition at line 861 of file NetworkManager.cs.
IEnumerator NetworkManager.GetAllUserWOAdmin | ( | Action< UserManager.WSUsers > | success | ) |
Definition at line 1031 of file NetworkManager.cs.
WSCourse NetworkManager.GetCourseFromIdInCache | ( | string | id | ) |
Definition at line 564 of file NetworkManager.cs.
IEnumerator NetworkManager.GetCurseByID | ( | int | id, |
Action< WSCourse > | success | ||
) |
Definition at line 578 of file NetworkManager.cs.
string NetworkManager.GetDataFromCourseNameInCache | ( | string | name | ) |
Definition at line 536 of file NetworkManager.cs.
string NetworkManager.GetDataFromIdInCache | ( | string | id | ) |
Definition at line 550 of file NetworkManager.cs.
IEnumerator NetworkManager.GetDobotMyCurses | ( | Action< WSCourses > | success | ) |
Definition at line 498 of file NetworkManager.cs.
IEnumerator NetworkManager.GetFile | ( | string | name, |
Action< byte[]> | success | ||
) |
Definition at line 917 of file NetworkManager.cs.
IEnumerator NetworkManager.GetGlobalFiles | ( | Action< WSFiles > | success | ) |
Definition at line 517 of file NetworkManager.cs.
IEnumerator NetworkManager.GetMyCurses | ( | Action< WSCourses > | success | ) |
Definition at line 460 of file NetworkManager.cs.
void NetworkManager.GetMyCursesTeszt | ( | ) |
Definition at line 1302 of file NetworkManager.cs.
void NetworkManager.GetMyCursesTesztLocal | ( | ) |
Definition at line 1365 of file NetworkManager.cs.
IEnumerator NetworkManager.GetQualityMyCurses | ( | Action< WSCourses > | success | ) |
Definition at line 479 of file NetworkManager.cs.
IEnumerator NetworkManager.GetUserById | ( | int | id, |
Action< UserManager.WSUser > | success, | ||
Action< string > | failed | ||
) |
Definition at line 885 of file NetworkManager.cs.
IEnumerator NetworkManager.LoadAllFilesForThisCourse | ( | Action | success, |
Action< string > | failed | ||
) |
Definition at line 729 of file NetworkManager.cs.
IEnumerator NetworkManager.LoadAllGlobalFiles | ( | Action | success, |
Action< string > | failed | ||
) |
Definition at line 778 of file NetworkManager.cs.
IEnumerator NetworkManager.Login | ( | string | user, |
string | pw, | ||
Action< UserManager.WSLogin > | success, | ||
Action< string > | fail | ||
) |
Definition at line 156 of file NetworkManager.cs.
void NetworkManager.LoginTeszt | ( | ) |
Definition at line 1293 of file NetworkManager.cs.
IEnumerator NetworkManager.LoginWithQR | ( | string | qr, |
Action< UserManager.WSLogin > | success, | ||
Action< string > | fail | ||
) |
Definition at line 198 of file NetworkManager.cs.
IEnumerator NetworkManager.SaveCourse | ( | int | id, |
string | data, | ||
Action< WSCourse > | success | ||
) |
Definition at line 373 of file NetworkManager.cs.
void NetworkManager.SaveToken | ( | string | token | ) |
Definition at line 151 of file NetworkManager.cs.
void NetworkManager.SetAdminToken | ( | ) |
Definition at line 58 of file NetworkManager.cs.
IEnumerator NetworkManager.SetFilesToCourse | ( | int | courseId, |
int[] | fileIdArray, | ||
Action | success = null |
||
) |
Definition at line 994 of file NetworkManager.cs.
IEnumerator NetworkManager.SetFilesToCourse | ( | int[] | fileIdArray, |
Action | success = null |
||
) |
Definition at line 989 of file NetworkManager.cs.
IEnumerator NetworkManager.SetUserCourseStatus | ( | int | courseId, |
int | userId, | ||
int | courseTypeId, | ||
bool | isSuccess, | ||
bool | isFinished, | ||
float | timeSpent, | ||
Action | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1115 of file NetworkManager.cs.
IEnumerator NetworkManager.SetUserCourseStatus | ( | int | courseTypeId, |
bool | isSuccess, | ||
bool | isFinished, | ||
float | timeSpent, | ||
Action | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1149 of file NetworkManager.cs.
void NetworkManager.Teszt | ( | ) |
Definition at line 1395 of file NetworkManager.cs.
IEnumerator NetworkManager.UploadFileToCourse | ( | int | courseId, |
byte[] | file, | ||
string | filename, | ||
bool | global, | ||
Action< WSFile > | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1061 of file NetworkManager.cs.
IEnumerator NetworkManager.UploadFileToCurrent | ( | byte[] | file, |
string | filename, | ||
bool | global, | ||
Action | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1051 of file NetworkManager.cs.
IEnumerator NetworkManager.UploadFileToCurrent | ( | byte[] | file, |
string | filename, | ||
bool | global, | ||
Action< WSFile > | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1056 of file NetworkManager.cs.
IEnumerator NetworkManager.UploadJson | ( | UserManager.WSActions | wsActions | ) |
Definition at line 937 of file NetworkManager.cs.
IEnumerator NetworkManager.UploadScreenshotCourse | ( | byte[] | file, |
Action | onSuccess, | ||
Action | onFailed | ||
) |
Definition at line 1160 of file NetworkManager.cs.
void NetworkManager.UploadTeszt | ( | ) |
Definition at line 1310 of file NetworkManager.cs.
void NetworkManager.UploadTeszt2 | ( | ) |
Definition at line 1349 of file NetworkManager.cs.
void NetworkManager.UploadTolltarto | ( | ) |
Definition at line 1373 of file NetworkManager.cs.
string NetworkManager.WSFileToUrl | ( | WSFile | file | ) |
Definition at line 807 of file NetworkManager.cs.
int NetworkManager.deleteFileID E:\quiz1.qiz" |
Definition at line 1353 of file NetworkManager.cs.
string NetworkManager.demoUrl |
Definition at line 20 of file NetworkManager.cs.
bool NetworkManager.forceDemo = false |
Definition at line 21 of file NetworkManager.cs.
WSCourse NetworkManager.selectedLevel |
Definition at line 22 of file NetworkManager.cs.
string NetworkManager.url |
Definition at line 19 of file NetworkManager.cs.