def delReaderList(self, id): '''删除未读信息 @param id: int 未读信息的角色id ''' from app.chatServer.netInterface import pushObjectNetInterface if id in self.readerList: #如果未读信息中有此角色id self.readerList.remove(id) pushObjectNetInterface.pushChatToObjectList(self.id, id)
def delReaderList(self,id): '''删除未读信息 @param id: int 未读信息的角色id ''' from app.chatServer.netInterface import pushObjectNetInterface if id in self.readerList: #如果未读信息中有此角色id self.readerList.remove(id) pushObjectNetInterface.pushChatToObjectList(self.id, id)
def addReaderList(self, id): '''设置未读信息 @param id: int 未读信息de角色id ''' from app.chatServer.netInterface import pushObjectNetInterface if not id in self.readerList: self.readerList.append(id) pushObjectNetInterface.pushChatToObjectList(self.id, id)
def addReaderList(self,id): '''设置未读信息 @param id: int 未读信息de角色id ''' from app.chatServer.netInterface import pushObjectNetInterface if not id in self.readerList: self.readerList.append(id) pushObjectNetInterface.pushChatToObjectList(self.id, id)