|
|
@ -1218,7 +1218,7 @@ class NextcloudUserStatusClient { |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Future<NextcloudUserStatusGetUserStatus> getStatus() async { |
|
|
|
Future<NextcloudUserStatusGetStatus> getStatus() async { |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/user_status'; |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/user_status'; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
@ -1230,13 +1230,13 @@ class NextcloudUserStatusClient { |
|
|
|
body, |
|
|
|
body, |
|
|
|
); |
|
|
|
); |
|
|
|
if (response.statusCode == 200) { |
|
|
|
if (response.statusCode == 200) { |
|
|
|
return NextcloudUserStatusGetUserStatus.fromJson( |
|
|
|
return NextcloudUserStatusGetStatus.fromJson( |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
} |
|
|
|
} |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Future<NextcloudUserStatusGetUserStatus> setStatus({required NextcloudUserStatusType statusType}) async { |
|
|
|
Future<NextcloudUserStatusGetStatus> setStatus({required NextcloudUserStatusType statusType}) async { |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/user_status/status'; |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/user_status/status'; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
@ -1249,13 +1249,13 @@ class NextcloudUserStatusClient { |
|
|
|
body, |
|
|
|
body, |
|
|
|
); |
|
|
|
); |
|
|
|
if (response.statusCode == 200) { |
|
|
|
if (response.statusCode == 200) { |
|
|
|
return NextcloudUserStatusGetUserStatus.fromJson( |
|
|
|
return NextcloudUserStatusGetStatus.fromJson( |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
} |
|
|
|
} |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Future<NextcloudUserStatusGetUserStatus> setPredefinedMessage({ |
|
|
|
Future<NextcloudUserStatusGetStatus> setPredefinedMessage({ |
|
|
|
required String messageId, |
|
|
|
required String messageId, |
|
|
|
int? clearAt, |
|
|
|
int? clearAt, |
|
|
|
}) async { |
|
|
|
}) async { |
|
|
@ -1274,13 +1274,13 @@ class NextcloudUserStatusClient { |
|
|
|
body, |
|
|
|
body, |
|
|
|
); |
|
|
|
); |
|
|
|
if (response.statusCode == 200) { |
|
|
|
if (response.statusCode == 200) { |
|
|
|
return NextcloudUserStatusGetUserStatus.fromJson( |
|
|
|
return NextcloudUserStatusGetStatus.fromJson( |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
} |
|
|
|
} |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Future<NextcloudUserStatusGetUserStatus> setCustomMessage({ |
|
|
|
Future<NextcloudUserStatusGetStatus> setCustomMessage({ |
|
|
|
String? statusIcon, |
|
|
|
String? statusIcon, |
|
|
|
String? message, |
|
|
|
String? message, |
|
|
|
int? clearAt, |
|
|
|
int? clearAt, |
|
|
@ -1305,7 +1305,7 @@ class NextcloudUserStatusClient { |
|
|
|
body, |
|
|
|
body, |
|
|
|
); |
|
|
|
); |
|
|
|
if (response.statusCode == 200) { |
|
|
|
if (response.statusCode == 200) { |
|
|
|
return NextcloudUserStatusGetUserStatus.fromJson( |
|
|
|
return NextcloudUserStatusGetStatus.fromJson( |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
} |
|
|
|
} |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
@ -1346,7 +1346,7 @@ class NextcloudUserStatusClient { |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Future<NextcloudUserStatus> heartbeat({required NextcloudUserStatusType status}) async { |
|
|
|
Future<NextcloudUserStatusStatus> heartbeat({required NextcloudUserStatusType status}) async { |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/heartbeat'; |
|
|
|
var path = '/ocs/v2.php/apps/user_status/api/v1/heartbeat'; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
|
final headers = <String, String>{}; |
|
|
@ -1359,7 +1359,8 @@ class NextcloudUserStatusClient { |
|
|
|
body, |
|
|
|
body, |
|
|
|
); |
|
|
|
); |
|
|
|
if (response.statusCode == 200) { |
|
|
|
if (response.statusCode == 200) { |
|
|
|
return NextcloudUserStatus.fromJson(json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
return NextcloudUserStatusStatus.fromJson( |
|
|
|
|
|
|
|
json.decode(utf8.decode(response.body) as String) as Map<String, dynamic>); |
|
|
|
} |
|
|
|
} |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line |
|
|
|
} |
|
|
|
} |
|
|
@ -4632,14 +4633,14 @@ class NextcloudUserStatusClearAt { |
|
|
|
static String? toJsonString(NextcloudUserStatusClearAt? data) => data == null ? null : json.encode(data.toJson()); |
|
|
|
static String? toJsonString(NextcloudUserStatusClearAt? data) => data == null ? null : json.encode(data.toJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class NextcloudUserStatusPublicUserStatus_ClearAt { |
|
|
|
class NextcloudUserStatusPublicStatus_ClearAt { |
|
|
|
NextcloudUserStatusPublicUserStatus_ClearAt( |
|
|
|
NextcloudUserStatusPublicStatus_ClearAt( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatusClearAt, |
|
|
|
this.userStatusClearAt, |
|
|
|
this.$int, |
|
|
|
this.$int, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory NextcloudUserStatusPublicUserStatus_ClearAt.fromJson(dynamic data) { |
|
|
|
factory NextcloudUserStatusPublicStatus_ClearAt.fromJson(dynamic data) { |
|
|
|
NextcloudUserStatusClearAt? userStatusClearAt; |
|
|
|
NextcloudUserStatusClearAt? userStatusClearAt; |
|
|
|
int? $int; |
|
|
|
int? $int; |
|
|
|
try { |
|
|
|
try { |
|
|
@ -4648,7 +4649,7 @@ class NextcloudUserStatusPublicUserStatus_ClearAt { |
|
|
|
try { |
|
|
|
try { |
|
|
|
$int = (data as int); |
|
|
|
$int = (data as int); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return NextcloudUserStatusPublicUserStatus_ClearAt( |
|
|
|
return NextcloudUserStatusPublicStatus_ClearAt( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatusClearAt: userStatusClearAt, |
|
|
|
userStatusClearAt: userStatusClearAt, |
|
|
|
$int: $int, |
|
|
|
$int: $int, |
|
|
@ -4656,8 +4657,8 @@ class NextcloudUserStatusPublicUserStatus_ClearAt { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusPublicUserStatus_ClearAt.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusPublicStatus_ClearAt.fromJsonString(String data) => |
|
|
|
NextcloudUserStatusPublicUserStatus_ClearAt.fromJson(json.decode(data)); |
|
|
|
NextcloudUserStatusPublicStatus_ClearAt.fromJson(json.decode(data)); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
final dynamic _data; |
|
|
@ -4705,8 +4706,8 @@ enum NextcloudUserStatusType { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonSerializable() |
|
|
|
@JsonSerializable() |
|
|
|
class NextcloudUserStatusPublicUserStatus { |
|
|
|
class NextcloudUserStatusPublicStatus { |
|
|
|
NextcloudUserStatusPublicUserStatus({ |
|
|
|
NextcloudUserStatusPublicStatus({ |
|
|
|
required this.userId, |
|
|
|
required this.userId, |
|
|
|
this.message, |
|
|
|
this.message, |
|
|
|
this.icon, |
|
|
|
this.icon, |
|
|
@ -4715,13 +4716,13 @@ class NextcloudUserStatusPublicUserStatus { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusPublicUserStatus.fromJson(Map<String, dynamic> json) => |
|
|
|
factory NextcloudUserStatusPublicStatus.fromJson(Map<String, dynamic> json) => |
|
|
|
_$NextcloudUserStatusPublicUserStatusFromJson(json); |
|
|
|
_$NextcloudUserStatusPublicStatusFromJson(json); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusPublicUserStatus.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusPublicStatus.fromJsonString(String data) => |
|
|
|
NextcloudUserStatusPublicUserStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
NextcloudUserStatusPublicStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final String userId; |
|
|
|
final String userId; |
|
|
@ -4730,14 +4731,14 @@ class NextcloudUserStatusPublicUserStatus { |
|
|
|
|
|
|
|
|
|
|
|
final String? icon; |
|
|
|
final String? icon; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusPublicUserStatus_ClearAt clearAt; |
|
|
|
final NextcloudUserStatusPublicStatus_ClearAt clearAt; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusType status; |
|
|
|
final NextcloudUserStatusType status; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusPublicUserStatusToJson(this); |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusPublicStatusToJson(this); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
static String? toJsonString(NextcloudUserStatusPublicUserStatus? data) => |
|
|
|
static String? toJsonString(NextcloudUserStatusPublicStatus? data) => |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -4760,7 +4761,7 @@ class NextcloudUserStatusGetPublicStatuses_Ocs { |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudOCSMeta meta; |
|
|
|
final NextcloudOCSMeta meta; |
|
|
|
|
|
|
|
|
|
|
|
final List<NextcloudUserStatusPublicUserStatus> data; |
|
|
|
final List<NextcloudUserStatusPublicStatus> data; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetPublicStatuses_OcsToJson(this); |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetPublicStatuses_OcsToJson(this); |
|
|
@ -4795,17 +4796,17 @@ class NextcloudUserStatusGetPublicStatuses { |
|
|
|
class NextcloudUserStatusGetPublicStatus_Ocs_Data { |
|
|
|
class NextcloudUserStatusGetPublicStatus_Ocs_Data { |
|
|
|
NextcloudUserStatusGetPublicStatus_Ocs_Data( |
|
|
|
NextcloudUserStatusGetPublicStatus_Ocs_Data( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatusPublicUserStatus, |
|
|
|
this.userStatusPublicStatus, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJson(dynamic data) { |
|
|
|
factory NextcloudUserStatusGetPublicStatus_Ocs_Data.fromJson(dynamic data) { |
|
|
|
NextcloudUserStatusPublicUserStatus? userStatusPublicUserStatus; |
|
|
|
NextcloudUserStatusPublicStatus? userStatusPublicStatus; |
|
|
|
try { |
|
|
|
try { |
|
|
|
userStatusPublicUserStatus = NextcloudUserStatusPublicUserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
userStatusPublicStatus = NextcloudUserStatusPublicStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return NextcloudUserStatusGetPublicStatus_Ocs_Data( |
|
|
|
return NextcloudUserStatusGetPublicStatus_Ocs_Data( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatusPublicUserStatus: userStatusPublicUserStatus, |
|
|
|
userStatusPublicStatus: userStatusPublicStatus, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -4816,7 +4817,7 @@ class NextcloudUserStatusGetPublicStatus_Ocs_Data { |
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
final dynamic _data; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusPublicUserStatus? userStatusPublicUserStatus; |
|
|
|
final NextcloudUserStatusPublicStatus? userStatusPublicStatus; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
dynamic toJson() => _data; |
|
|
|
dynamic toJson() => _data; |
|
|
@ -4877,14 +4878,14 @@ class NextcloudUserStatusGetPublicStatus { |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class NextcloudUserStatus_ClearAt { |
|
|
|
class NextcloudUserStatusStatus_ClearAt { |
|
|
|
NextcloudUserStatus_ClearAt( |
|
|
|
NextcloudUserStatusStatus_ClearAt( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatusClearAt, |
|
|
|
this.userStatusClearAt, |
|
|
|
this.$int, |
|
|
|
this.$int, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory NextcloudUserStatus_ClearAt.fromJson(dynamic data) { |
|
|
|
factory NextcloudUserStatusStatus_ClearAt.fromJson(dynamic data) { |
|
|
|
NextcloudUserStatusClearAt? userStatusClearAt; |
|
|
|
NextcloudUserStatusClearAt? userStatusClearAt; |
|
|
|
int? $int; |
|
|
|
int? $int; |
|
|
|
try { |
|
|
|
try { |
|
|
@ -4893,7 +4894,7 @@ class NextcloudUserStatus_ClearAt { |
|
|
|
try { |
|
|
|
try { |
|
|
|
$int = (data as int); |
|
|
|
$int = (data as int); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return NextcloudUserStatus_ClearAt( |
|
|
|
return NextcloudUserStatusStatus_ClearAt( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatusClearAt: userStatusClearAt, |
|
|
|
userStatusClearAt: userStatusClearAt, |
|
|
|
$int: $int, |
|
|
|
$int: $int, |
|
|
@ -4901,8 +4902,8 @@ class NextcloudUserStatus_ClearAt { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatus_ClearAt.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusStatus_ClearAt.fromJsonString(String data) => |
|
|
|
NextcloudUserStatus_ClearAt.fromJson(json.decode(data)); |
|
|
|
NextcloudUserStatusStatus_ClearAt.fromJson(json.decode(data)); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
final dynamic _data; |
|
|
@ -4921,8 +4922,8 @@ class NextcloudUserStatus_ClearAt { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonSerializable() |
|
|
|
@JsonSerializable() |
|
|
|
class NextcloudUserStatus { |
|
|
|
class NextcloudUserStatusStatus { |
|
|
|
NextcloudUserStatus({ |
|
|
|
NextcloudUserStatusStatus({ |
|
|
|
required this.userId, |
|
|
|
required this.userId, |
|
|
|
this.message, |
|
|
|
this.message, |
|
|
|
this.messageId, |
|
|
|
this.messageId, |
|
|
@ -4934,12 +4935,12 @@ class NextcloudUserStatus { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatus.fromJson(Map<String, dynamic> json) => _$NextcloudUserStatusFromJson(json); |
|
|
|
factory NextcloudUserStatusStatus.fromJson(Map<String, dynamic> json) => _$NextcloudUserStatusStatusFromJson(json); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatus.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusStatus.fromJsonString(String data) => |
|
|
|
NextcloudUserStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
NextcloudUserStatusStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final String userId; |
|
|
|
final String userId; |
|
|
@ -4952,43 +4953,43 @@ class NextcloudUserStatus { |
|
|
|
|
|
|
|
|
|
|
|
final String? icon; |
|
|
|
final String? icon; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatus_ClearAt clearAt; |
|
|
|
final NextcloudUserStatusStatus_ClearAt clearAt; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusType status; |
|
|
|
final NextcloudUserStatusType status; |
|
|
|
|
|
|
|
|
|
|
|
final bool statusIsUserDefined; |
|
|
|
final bool statusIsUserDefined; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusToJson(this); |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusStatusToJson(this); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
static String? toJsonString(NextcloudUserStatus? data) => data == null ? null : json.encode(data.toJson()); |
|
|
|
static String? toJsonString(NextcloudUserStatusStatus? data) => data == null ? null : json.encode(data.toJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class NextcloudUserStatusGetUserStatus_Ocs_Data { |
|
|
|
class NextcloudUserStatusGetStatus_Ocs_Data { |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs_Data( |
|
|
|
NextcloudUserStatusGetStatus_Ocs_Data( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatus, |
|
|
|
this.userStatusStatus, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory NextcloudUserStatusGetUserStatus_Ocs_Data.fromJson(dynamic data) { |
|
|
|
factory NextcloudUserStatusGetStatus_Ocs_Data.fromJson(dynamic data) { |
|
|
|
NextcloudUserStatus? userStatus; |
|
|
|
NextcloudUserStatusStatus? userStatusStatus; |
|
|
|
try { |
|
|
|
try { |
|
|
|
userStatus = NextcloudUserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
userStatusStatus = NextcloudUserStatusStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
return NextcloudUserStatusGetUserStatus_Ocs_Data( |
|
|
|
return NextcloudUserStatusGetStatus_Ocs_Data( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatus: userStatus, |
|
|
|
userStatusStatus: userStatusStatus, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusGetUserStatus_Ocs_Data.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusGetStatus_Ocs_Data.fromJsonString(String data) => |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs_Data.fromJson(json.decode(data)); |
|
|
|
NextcloudUserStatusGetStatus_Ocs_Data.fromJson(json.decode(data)); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
final dynamic _data; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatus? userStatus; |
|
|
|
final NextcloudUserStatusStatus? userStatusStatus; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
dynamic toJson() => _data; |
|
|
|
dynamic toJson() => _data; |
|
|
@ -4999,54 +5000,53 @@ class NextcloudUserStatusGetUserStatus_Ocs_Data { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonSerializable() |
|
|
|
@JsonSerializable() |
|
|
|
class NextcloudUserStatusGetUserStatus_Ocs { |
|
|
|
class NextcloudUserStatusGetStatus_Ocs { |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs({ |
|
|
|
NextcloudUserStatusGetStatus_Ocs({ |
|
|
|
required this.meta, |
|
|
|
required this.meta, |
|
|
|
required this.data, |
|
|
|
required this.data, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusGetUserStatus_Ocs.fromJson(Map<String, dynamic> json) => |
|
|
|
factory NextcloudUserStatusGetStatus_Ocs.fromJson(Map<String, dynamic> json) => |
|
|
|
_$NextcloudUserStatusGetUserStatus_OcsFromJson(json); |
|
|
|
_$NextcloudUserStatusGetStatus_OcsFromJson(json); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusGetUserStatus_Ocs.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusGetStatus_Ocs.fromJsonString(String data) => |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
NextcloudUserStatusGetStatus_Ocs.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudOCSMeta meta; |
|
|
|
final NextcloudOCSMeta meta; |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusGetUserStatus_Ocs_Data data; |
|
|
|
final NextcloudUserStatusGetStatus_Ocs_Data data; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetUserStatus_OcsToJson(this); |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetStatus_OcsToJson(this); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
static String? toJsonString(NextcloudUserStatusGetUserStatus_Ocs? data) => |
|
|
|
static String? toJsonString(NextcloudUserStatusGetStatus_Ocs? data) => |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonSerializable() |
|
|
|
@JsonSerializable() |
|
|
|
class NextcloudUserStatusGetUserStatus { |
|
|
|
class NextcloudUserStatusGetStatus { |
|
|
|
NextcloudUserStatusGetUserStatus({required this.ocs}); |
|
|
|
NextcloudUserStatusGetStatus({required this.ocs}); |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusGetUserStatus.fromJson(Map<String, dynamic> json) => |
|
|
|
factory NextcloudUserStatusGetStatus.fromJson(Map<String, dynamic> json) => |
|
|
|
_$NextcloudUserStatusGetUserStatusFromJson(json); |
|
|
|
_$NextcloudUserStatusGetStatusFromJson(json); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
factory NextcloudUserStatusGetUserStatus.fromJsonString(String data) => |
|
|
|
factory NextcloudUserStatusGetStatus.fromJsonString(String data) => |
|
|
|
NextcloudUserStatusGetUserStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
NextcloudUserStatusGetStatus.fromJson(json.decode(data) as Map<String, dynamic>); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
|
|
|
|
final NextcloudUserStatusGetUserStatus_Ocs ocs; |
|
|
|
final NextcloudUserStatusGetStatus_Ocs ocs; |
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetUserStatusToJson(this); |
|
|
|
Map<String, dynamic> toJson() => _$NextcloudUserStatusGetStatusToJson(this); |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|
static String? toJsonString(NextcloudUserStatusGetUserStatus? data) => |
|
|
|
static String? toJsonString(NextcloudUserStatusGetStatus? data) => data == null ? null : json.encode(data.toJson()); |
|
|
|
data == null ? null : json.encode(data.toJson()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class NextcloudUserStatusPredefinedStatus_ClearAt { |
|
|
|
class NextcloudUserStatusPredefinedStatus_ClearAt { |
|
|
@ -5733,10 +5733,10 @@ final _deserializers = <Type, dynamic Function(dynamic)>{ |
|
|
|
List<NextcloudUserStatusGetPublicStatuses_Ocs>: (final data) => (data as List) |
|
|
|
List<NextcloudUserStatusGetPublicStatuses_Ocs>: (final data) => (data as List) |
|
|
|
.map((final e) => NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(e as Map<String, dynamic>)) |
|
|
|
.map((final e) => NextcloudUserStatusGetPublicStatuses_Ocs.fromJson(e as Map<String, dynamic>)) |
|
|
|
.toList(), |
|
|
|
.toList(), |
|
|
|
NextcloudUserStatusPublicUserStatus: (final data) => |
|
|
|
NextcloudUserStatusPublicStatus: (final data) => |
|
|
|
NextcloudUserStatusPublicUserStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
NextcloudUserStatusPublicStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
List<NextcloudUserStatusPublicUserStatus>: (final data) => |
|
|
|
List<NextcloudUserStatusPublicStatus>: (final data) => |
|
|
|
(data as List).map((final e) => NextcloudUserStatusPublicUserStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
(data as List).map((final e) => NextcloudUserStatusPublicStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
NextcloudUserStatusClearAt: (final data) => NextcloudUserStatusClearAt.fromJson(data as Map<String, dynamic>), |
|
|
|
NextcloudUserStatusClearAt: (final data) => NextcloudUserStatusClearAt.fromJson(data as Map<String, dynamic>), |
|
|
|
List<NextcloudUserStatusClearAt>: (final data) => |
|
|
|
List<NextcloudUserStatusClearAt>: (final data) => |
|
|
|
(data as List).map((final e) => NextcloudUserStatusClearAt.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
(data as List).map((final e) => NextcloudUserStatusClearAt.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
@ -5749,18 +5749,16 @@ final _deserializers = <Type, dynamic Function(dynamic)>{ |
|
|
|
List<NextcloudUserStatusGetPublicStatus_Ocs>: (final data) => (data as List) |
|
|
|
List<NextcloudUserStatusGetPublicStatus_Ocs>: (final data) => (data as List) |
|
|
|
.map((final e) => NextcloudUserStatusGetPublicStatus_Ocs.fromJson(e as Map<String, dynamic>)) |
|
|
|
.map((final e) => NextcloudUserStatusGetPublicStatus_Ocs.fromJson(e as Map<String, dynamic>)) |
|
|
|
.toList(), |
|
|
|
.toList(), |
|
|
|
NextcloudUserStatusGetUserStatus: (final data) => |
|
|
|
NextcloudUserStatusGetStatus: (final data) => NextcloudUserStatusGetStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
NextcloudUserStatusGetUserStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
List<NextcloudUserStatusGetStatus>: (final data) => |
|
|
|
List<NextcloudUserStatusGetUserStatus>: (final data) => |
|
|
|
(data as List).map((final e) => NextcloudUserStatusGetStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
(data as List).map((final e) => NextcloudUserStatusGetUserStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
NextcloudUserStatusGetStatus_Ocs: (final data) => |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs: (final data) => |
|
|
|
NextcloudUserStatusGetStatus_Ocs.fromJson(data as Map<String, dynamic>), |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs.fromJson(data as Map<String, dynamic>), |
|
|
|
List<NextcloudUserStatusGetStatus_Ocs>: (final data) => |
|
|
|
List<NextcloudUserStatusGetUserStatus_Ocs>: (final data) => (data as List) |
|
|
|
(data as List).map((final e) => NextcloudUserStatusGetStatus_Ocs.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
.map((final e) => NextcloudUserStatusGetUserStatus_Ocs.fromJson(e as Map<String, dynamic>)) |
|
|
|
NextcloudUserStatusStatus: (final data) => NextcloudUserStatusStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
.toList(), |
|
|
|
List<NextcloudUserStatusStatus>: (final data) => |
|
|
|
NextcloudUserStatus: (final data) => NextcloudUserStatus.fromJson(data as Map<String, dynamic>), |
|
|
|
(data as List).map((final e) => NextcloudUserStatusStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
List<NextcloudUserStatus>: (final data) => |
|
|
|
|
|
|
|
(data as List).map((final e) => NextcloudUserStatus.fromJson(e as Map<String, dynamic>)).toList(), |
|
|
|
|
|
|
|
NextcloudUserStatusPredefinedStatuses: (final data) => |
|
|
|
NextcloudUserStatusPredefinedStatuses: (final data) => |
|
|
|
NextcloudUserStatusPredefinedStatuses.fromJson(data as Map<String, dynamic>), |
|
|
|
NextcloudUserStatusPredefinedStatuses.fromJson(data as Map<String, dynamic>), |
|
|
|
List<NextcloudUserStatusPredefinedStatuses>: (final data) => (data as List) |
|
|
|
List<NextcloudUserStatusPredefinedStatuses>: (final data) => (data as List) |
|
|
@ -6018,20 +6016,20 @@ final _serializers = <Type, dynamic Function(dynamic)>{ |
|
|
|
List<NextcloudUserStatusGetPublicStatuses>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetPublicStatuses>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusGetPublicStatuses_Ocs: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusGetPublicStatuses_Ocs: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusGetPublicStatuses_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetPublicStatuses_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusPublicUserStatus: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusPublicStatus: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusPublicUserStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusPublicStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusClearAt: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusClearAt: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusClearAt>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusClearAt>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusGetPublicStatus: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusGetPublicStatus: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusGetPublicStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetPublicStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusGetPublicStatus_Ocs: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusGetPublicStatus_Ocs: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusGetPublicStatus_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetPublicStatus_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusGetUserStatus: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusGetStatus: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusGetUserStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusGetUserStatus_Ocs: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusGetStatus_Ocs: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusGetUserStatus_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusGetStatus_Ocs>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatus: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusStatus: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusStatus>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusPredefinedStatuses: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusPredefinedStatuses: (final data) => data.toJson(), |
|
|
|
List<NextcloudUserStatusPredefinedStatuses>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
List<NextcloudUserStatusPredefinedStatuses>: (final data) => data.map((final e) => e.toJson()).toList(), |
|
|
|
NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => data.toJson(), |
|
|
|
NextcloudUserStatusPredefinedStatuses_Ocs: (final data) => data.toJson(), |
|
|
|