public bool SENT_REJECT(int reason, int refTag) { if (!SENT_REJECT()) { return(false); } QuickFix.Message msg = responder.msgLookup[QuickFix.Fields.MsgType.REJECT].First(); if (!msg.IsSetField(QuickFix.Fields.Tags.SessionRejectReason)) { return(false); } QuickFix.Fields.SessionRejectReason reasonField = new QuickFix.Fields.SessionRejectReason(); msg.GetField(reasonField); if (reasonField.getValue() != reason) { return(false); } if (!msg.IsSetField(QuickFix.Fields.Tags.RefTagID)) { return(false); } QuickFix.Fields.RefTagID refTagField = new QuickFix.Fields.RefTagID(); msg.GetField(refTagField); if (refTagField.getValue() != refTag) { return(false); } return(true); }
public static char?GetCharFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(message.GetChar(field)); } else { return(null); } }
public static int?GetNullIntFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(message.GetInt(field)); } else { return(null); } }
public static string GetNullFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(message.GetString(field)); } else { return(null); } }
public static DateTime?GetDateTimeFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(message.GetDateTime(field)); } else { return(null); } }
public static double?GetNullDoubleFieldIfSet(QuickFix.Message message, int field) { if (message.IsSetField(field)) { return(Convert.ToDouble(message.GetDecimal(field))); } else { return(null); } }
public bool SENT_BUSINESS_REJECT(int reason) { if (!SENT_BUSINESS_REJECT()) { return(false); } QuickFix.Message msg = responder.msgLookup[QuickFix.Fields.MsgType.BUSINESS_MESSAGE_REJECT].First(); if (!msg.IsSetField(QuickFix.Fields.Tags.BusinessRejectReason)) { return(false); } QuickFix.Fields.BusinessRejectReason reasonField = new QuickFix.Fields.BusinessRejectReason(); msg.GetField(reasonField); if (reasonField.getValue() != reason) { return(false); } return(true); }