AddNewMessages() 공개 정적인 메소드

public static AddNewMessages ( ISyncContext context, JanusMessageInfo messages, JanusRatingInfo rates, JanusModerateInfo moderatorials, Action afterProcessInTxHandler, int selfID ) : void
context ISyncContext
messages JanusMessageInfo
rates JanusRatingInfo
moderatorials JanusModerateInfo
afterProcessInTxHandler Action
selfID int
리턴 void
 protected override void ProcessResponse(ISyncContext context, TopicRequest request, TopicResponse response)
 {
     MessagesSyncHelper.AddNewMessages(
         context,
         response.Messages,
         response.Rating,
         response.Moderate,
         _outboxManager.DownloadTopics.Clear,
         GetSyncConfig().SelfID);
 }
예제 #2
0
 protected override void ProcessResponse(
     ISyncContext context,
     ChangeRequest request,
     ChangeResponse response)
 {
     SetSelfID(response.userId);
     MessagesSyncHelper.AddNewMessages(
         context,
         response.newMessages ?? new JanusMessageInfo[] {},
         response.newRating ?? new JanusRatingInfo[] {},
         response.newModerate ?? new JanusModerateInfo[] {},
         response.userId);
     context.DBVars()[_lastRatingRVName] = response.lastRatingRowVersion.ToHexString();
     context.DBVars()[_lastForumRVName]  = response.lastForumRowVersion.ToHexString();
     context.DBVars()[_lastModerRVName]  = response.lastModerateRowVersion.ToHexString();
 }