public override int GetHashCode() { int hash = 1; if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { hash ^= ResponseType.GetHashCode(); } if (ResponseSize != 0) { hash ^= ResponseSize.GetHashCode(); } if (payload_ != null) { hash ^= Payload.GetHashCode(); } if (FillUsername != false) { hash ^= FillUsername.GetHashCode(); } if (FillOauthScope != false) { hash ^= FillOauthScope.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = Data.GetHashCode(); hash = (hash * 397) ^ DataType.GetHashCode(); hash = (hash * 397) ^ ResponseType.GetHashCode(); hash = (hash * 397) ^ MessageType.GetHashCode(); hash = (hash * 397) ^ CorrelationId.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int hash = 17; hash = (hash * 23) + SignalType.GetHashCode(); hash = (hash * 23) + ResponseType.GetHashCode(); hash = (hash * 23) + (Group == null ? 0 : Group.GetHashCode()); return(hash); } }
/// <summary> /// 返回相应数据字典 /// </summary> /// <param name="respType">响应类型</param> /// <param name="taskId">任务Id</param> /// <param name="taskDataType">任务数据类型</param> /// <param name="taskData">任务数据</param> /// <returns></returns> protected Dictionary <string, object> RespData(ResponseType respType, string taskId = "", int taskDataType = 0, object taskData = null) { var respData = new Dictionary <string, object>(); respData.Add("resp_type", respType.GetHashCode()); respData.Add("task_id", respType == ResponseType.NewPrintTask ? taskId : string.Empty); respData.Add("data_type", respType == ResponseType.NewPrintTask ? ((TaskDataType)taskDataType).GetRemark() : string.Empty); if (taskData != null) { respData.Add("result", respType == ResponseType.NewPrintTask ? taskData : null); } return(respData); }
public override int GetHashCode() { int hash = 1; if (ResponseType != global::Grpc.Testing.PayloadType.COMPRESSABLE) { hash ^= ResponseType.GetHashCode(); } hash ^= responseParameters_.GetHashCode(); if (payload_ != null) { hash ^= Payload.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResponseType != 0) { hash ^= ResponseType.GetHashCode(); } if (Attachment.Length != 0) { hash ^= Attachment.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }