自动打招呼:UI细节完善
This commit is contained in:
@@ -11,6 +11,7 @@ import com.mango.core.user.bean.GiftWallInfo;
|
||||
import com.mango.core.user.bean.HelloUserInfo;
|
||||
import com.mango.core.user.bean.NewUserInfo;
|
||||
import com.mango.core.user.bean.ProtocolInfo;
|
||||
import com.mango.core.user.bean.SayHelloCount;
|
||||
import com.mango.core.user.bean.SayHelloInfo;
|
||||
import com.mango.core.user.bean.UserDetailInfo;
|
||||
import com.mango.core.user.bean.UserGameInfo;
|
||||
@@ -264,4 +265,5 @@ public interface IUserModel extends IModel {
|
||||
*/
|
||||
Single<String> clickSayHelloChat(long toUserUid);
|
||||
|
||||
Single<SayHelloCount> getSayHelloCount();
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ import com.mango.core.user.bean.GiftWallInfo;
|
||||
import com.mango.core.user.bean.HelloUserInfo;
|
||||
import com.mango.core.user.bean.NewUserInfo;
|
||||
import com.mango.core.user.bean.ProtocolInfo;
|
||||
import com.mango.core.user.bean.SayHelloCount;
|
||||
import com.mango.core.user.bean.SayHelloInfo;
|
||||
import com.mango.core.user.bean.UserDetailInfo;
|
||||
import com.mango.core.user.bean.UserGameInfo;
|
||||
@@ -838,6 +839,14 @@ public final class UserModel extends BaseModel implements IUserModel {
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Single<SayHelloCount> getSayHelloCount() {
|
||||
return api.getSayHelloCount()
|
||||
.compose(RxHelper.handleBeanData())
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
|
||||
|
||||
private interface Api {
|
||||
/**
|
||||
* 获取某个用户的用户信息
|
||||
@@ -1098,6 +1107,14 @@ public final class UserModel extends BaseModel implements IUserModel {
|
||||
@POST("shunt/click_chat")
|
||||
Single<ServiceResult<String>> clickSayHelloChat(@Field("toUserId") long toUserUid);
|
||||
|
||||
/**
|
||||
* 打招呼人数
|
||||
*
|
||||
* @return -
|
||||
*/
|
||||
@POST("shunt/hello_count")
|
||||
Single<ServiceResult<SayHelloCount>> getSayHelloCount();
|
||||
|
||||
}
|
||||
|
||||
private static final class Helper {
|
||||
|
@@ -8,6 +8,7 @@ data class HelloUserInfo(
|
||||
val gender: Int = 0,
|
||||
val name: String = "",
|
||||
val onlineDesc: String = "",
|
||||
val online: Boolean = false,
|
||||
val uid: Long = 0,
|
||||
val userLevelVo: UserLevelVo? = null
|
||||
)
|
@@ -0,0 +1,6 @@
|
||||
package com.mango.core.user.bean
|
||||
|
||||
data class SayHelloCount(
|
||||
val helloCount: Int = 0,
|
||||
val visible: Boolean = false
|
||||
)
|
@@ -1,3 +1,3 @@
|
||||
package com.mango.core.user.event
|
||||
|
||||
class ShowMeEvent
|
||||
class ClickSayHelloEvent
|
Reference in New Issue
Block a user