/// <summary> /// Das aktuelle Zertifikat für den angegebenen Empfänger /// </summary> /// <param name="receiverId">Empfänger-ID</param> /// <returns>Das aktuelle Zertifikat für den Empfänger oder null</returns> public X509Certificate GetCertificate(ReceiverId receiverId) { X509Certificate result; if (!_receiverToCertificate.TryGetValue(receiverId, out result)) return null; return result; }
/// <summary> /// 送信対象宛ての意見メッセージ取得 /// </summary> /// <param name="receiverId">送信対象ID</param> /// <returns>意見メッセージリスト</returns> public List <Message> Find(ReceiverId receiverId) { var result = new List <Message>(); var sql = new StringBuilder(); sql.AppendLine("SELECT"); sql.AppendLine(" send_to"); sql.AppendLine(" , detail"); sql.AppendLine("FROM"); sql.AppendLine(" t_message"); // 「すべて」以外の場合は対象を絞り込む if (receiverId.Value != ReceiverId.AllReceiverId) { sql.AppendLine("WHERE "); sql.AppendLine(" send_to = @send_to"); db.ClearParam(); db.AddParam("@send_to", receiverId.Value); } sql.AppendLine("ORDER BY id DESC"); var sqlResult = db.Fill(sql.ToString()); foreach (DataRow row in sqlResult.Rows) { var sendTo = row["send_to"].ToString(); var detail = row["detail"].ToString(); result.Add(Message.Create(sendTo, detail)); } return(result); }
public override int GetHashCode() { unchecked { int hash = GetType().GetHashCode(); hash = (hash * 31) ^ SenderId.GetHashCode(); hash = (hash * 31) ^ ReceiverId.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (ReceiverId.Length != 0) { hash ^= ReceiverId.GetHashCode(); } if (TechnicalMessageType.Length != 0) { hash ^= TechnicalMessageType.GetHashCode(); } if (TeamSetContextId.Length != 0) { hash ^= TeamSetContextId.GetHashCode(); } if (chunkContext_ != null) { hash ^= ChunkContext.GetHashCode(); } if (PayloadSize != 0L) { hash ^= PayloadSize.GetHashCode(); } if (sentTimestamp_ != null) { hash ^= SentTimestamp.GetHashCode(); } if (SequenceNumber != 0L) { hash ^= SequenceNumber.GetHashCode(); } if (SenderId.Length != 0) { hash ^= SenderId.GetHashCode(); } if (createdAt_ != null) { hash ^= CreatedAt.GetHashCode(); } if (MessageId.Length != 0) { hash ^= MessageId.GetHashCode(); } if (metadata_ != null) { hash ^= Metadata.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (GiftboxId != 0UL) { hash ^= GiftboxId.GetHashCode(); } if (SenderId.Length != 0) { hash ^= SenderId.GetHashCode(); } if (ReceiverId.Length != 0) { hash ^= ReceiverId.GetHashCode(); } if (FortId.Length != 0) { hash ^= FortId.GetHashCode(); } if (FortLat != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLat); } if (FortLng != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLng); } if (CreationTimestamp != 0L) { hash ^= CreationTimestamp.GetHashCode(); } if (SentTimestamp != 0L) { hash ^= SentTimestamp.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ReceiverId.Length != 0) { hash ^= ReceiverId.GetHashCode(); } if (SenderId.Length != 0) { hash ^= SenderId.GetHashCode(); } if (Text.Length != 0) { hash ^= Text.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ReceiverId != 0) { hash ^= ReceiverId.GetHashCode(); } if (TimeType != 0) { hash ^= TimeType.GetHashCode(); } if (GnssWeek != 0) { hash ^= GnssWeek.GetHashCode(); } if (GnssSecondS != 0D) { hash ^= GnssSecondS.GetHashCode(); } if (PntType != 0) { hash ^= PntType.GetHashCode(); } if (PosXM != 0D) { hash ^= PosXM.GetHashCode(); } if (PosYM != 0D) { hash ^= PosYM.GetHashCode(); } if (PosZM != 0D) { hash ^= PosZM.GetHashCode(); } if (StdPosXM != 0D) { hash ^= StdPosXM.GetHashCode(); } if (StdPosYM != 0D) { hash ^= StdPosYM.GetHashCode(); } if (StdPosZM != 0D) { hash ^= StdPosZM.GetHashCode(); } if (VelXM != 0D) { hash ^= VelXM.GetHashCode(); } if (VelYM != 0D) { hash ^= VelYM.GetHashCode(); } if (VelZM != 0D) { hash ^= VelZM.GetHashCode(); } if (StdVelXM != 0D) { hash ^= StdVelXM.GetHashCode(); } if (StdVelYM != 0D) { hash ^= StdVelYM.GetHashCode(); } if (StdVelZM != 0D) { hash ^= StdVelZM.GetHashCode(); } if (SovledSatNum != 0) { hash ^= SovledSatNum.GetHashCode(); } hash ^= satDirCosine_.GetHashCode(); if (Pdop != 0D) { hash ^= Pdop.GetHashCode(); } if (Hdop != 0D) { hash ^= Hdop.GetHashCode(); } if (Vdop != 0D) { hash ^= Vdop.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (GiftboxId != 0UL) { hash ^= GiftboxId.GetHashCode(); } if (SenderId.Length != 0) { hash ^= SenderId.GetHashCode(); } if (SenderCodename.Length != 0) { hash ^= SenderCodename.GetHashCode(); } if (ReceiverId.Length != 0) { hash ^= ReceiverId.GetHashCode(); } if (ReceiverCodename.Length != 0) { hash ^= ReceiverCodename.GetHashCode(); } if (FortId.Length != 0) { hash ^= FortId.GetHashCode(); } if (FortName.Length != 0) { hash ^= FortName.GetHashCode(); } if (FortLat != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLat); } if (FortLng != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLng); } if (FortImageUrl.Length != 0) { hash ^= FortImageUrl.GetHashCode(); } if (CreationTimestamp != 0L) { hash ^= CreationTimestamp.GetHashCode(); } if (SentTimestamp != 0L) { hash ^= SentTimestamp.GetHashCode(); } if (DeliveryPokemonId != 0UL) { hash ^= DeliveryPokemonId.GetHashCode(); } if (IsSponsored != false) { hash ^= IsSponsored.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }