public static void On_NTF_INTIMACY_RELATION_REQUEST(CSPkg msg) { SCPKG_CMD_NTF_INTIMACY_RELATION_REQUEST stNtfIntimacyRelationRequest = msg.stPkgData.get_stNtfIntimacyRelationRequest(); if (stNtfIntimacyRelationRequest == null) { return; } COM_INTIMACY_STATE state = 0; if (stNtfIntimacyRelationRequest.bRelationChgType == 1) { if (stNtfIntimacyRelationRequest.bIntimacyState == 1) { state = 20; } else if (stNtfIntimacyRelationRequest.bIntimacyState == 2) { state = 22; } } else if (stNtfIntimacyRelationRequest.bRelationChgType == 2) { if (stNtfIntimacyRelationRequest.bIntimacyState == 1) { state = 21; } else if (stNtfIntimacyRelationRequest.bIntimacyState == 2) { state = 23; } } CFriendRelationship.FRData.Add(stNtfIntimacyRelationRequest.stUin.ullUid, stNtfIntimacyRelationRequest.stUin.dwLogicWorldId, state, stNtfIntimacyRelationRequest.bRelationChgType, 0u, true); }
public static void On_NTF_INTIMACY_RELATION_REQUEST(CSPkg msg) { SCPKG_CMD_NTF_INTIMACY_RELATION_REQUEST stNtfIntimacyRelationRequest = msg.stPkgData.stNtfIntimacyRelationRequest; if (stNtfIntimacyRelationRequest == null) { return; } COM_INTIMACY_STATE cOM_INTIMACY_STATE = COM_INTIMACY_STATE.COM_INTIMACY_STATE_NULL; if (stNtfIntimacyRelationRequest.bRelationChgType == 1) { if (IntimacyRelationViewUT.IsRelaState(stNtfIntimacyRelationRequest.bIntimacyState)) { cOM_INTIMACY_STATE = IntimacyRelationViewUT.GetConfirmState(stNtfIntimacyRelationRequest.bIntimacyState); } } else if (stNtfIntimacyRelationRequest.bRelationChgType == 2 && IntimacyRelationViewUT.IsRelaState(stNtfIntimacyRelationRequest.bIntimacyState)) { cOM_INTIMACY_STATE = IntimacyRelationViewUT.GetDenyState(stNtfIntimacyRelationRequest.bIntimacyState); } if (cOM_INTIMACY_STATE != COM_INTIMACY_STATE.COM_INTIMACY_STATE_NULL) { CFriendRelationship.FRData.Add(stNtfIntimacyRelationRequest.stUin.ullUid, stNtfIntimacyRelationRequest.stUin.dwLogicWorldId, cOM_INTIMACY_STATE, (COM_INTIMACY_RELATION_CHG_TYPE)stNtfIntimacyRelationRequest.bRelationChgType, 0u, true); } }