main
hrxiang 3 years ago
parent 7457f182f3
commit e4c78e0106
  1. 10
      android/build.gradle
  2. 4
      lib/src/models/message.dart

@ -3,13 +3,10 @@ version '1.0'
buildscript { buildscript {
repositories { repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { maven {
url 'http://121.37.25.71:8081/repository/maven2/'
allowInsecureProtocol = true allowInsecureProtocol = true
// url 'http://121.37.25.71:8081/repository/maven-releases/' // url 'http://121.37.25.71:8081/repository/maven-releases/'
url 'http://121.37.25.71:8081/repository/maven2/'
} }
google() google()
mavenCentral() mavenCentral()
@ -22,13 +19,10 @@ buildscript {
rootProject.allprojects { rootProject.allprojects {
repositories { repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { maven {
url 'http://121.37.25.71:8081/repository/maven2/'
allowInsecureProtocol = true allowInsecureProtocol = true
// url 'http://121.37.25.71:8081/repository/maven-releases/' // url 'http://121.37.25.71:8081/repository/maven-releases/'
url 'http://121.37.25.71:8081/repository/maven2/'
} }
google() google()
mavenCentral() mavenCentral()

@ -608,11 +608,13 @@ class AttachedInfoElem {
/// ///
bool? isPrivateChat; bool? isPrivateChat;
int? hasReadTime; int? hasReadTime;
bool? notSenderNotificationPush;
AttachedInfoElem({ AttachedInfoElem({
this.groupHasReadInfo, this.groupHasReadInfo,
this.isPrivateChat, this.isPrivateChat,
this.hasReadTime, this.hasReadTime,
this.notSenderNotificationPush,
}); });
AttachedInfoElem.fromJson(Map<String, dynamic> json) { AttachedInfoElem.fromJson(Map<String, dynamic> json) {
@ -621,6 +623,7 @@ class AttachedInfoElem {
: GroupHasReadInfo.fromJson(json['groupHasReadInfo']); : GroupHasReadInfo.fromJson(json['groupHasReadInfo']);
isPrivateChat = json['isPrivateChat']; isPrivateChat = json['isPrivateChat'];
hasReadTime = json['hasReadTime']; hasReadTime = json['hasReadTime'];
notSenderNotificationPush = json['notSenderNotificationPush'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -628,6 +631,7 @@ class AttachedInfoElem {
data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson(); data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson();
data['isPrivateChat'] = this.isPrivateChat; data['isPrivateChat'] = this.isPrivateChat;
data['hasReadTime'] = this.hasReadTime; data['hasReadTime'] = this.hasReadTime;
data['notSenderNotificationPush'] = this.notSenderNotificationPush;
return data; return data;
} }
} }

Loading…
Cancel
Save