当前位置: 首页>>代码示例>>C#>>正文


C# MamaMsgField.getPrice方法代码示例

本文整理汇总了C#中Wombat.MamaMsgField.getPrice方法的典型用法代码示例。如果您正苦于以下问题:C# MamaMsgField.getPrice方法的具体用法?C# MamaMsgField.getPrice怎么用?C# MamaMsgField.getPrice使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Wombat.MamaMsgField的用法示例。


在下文中一共展示了MamaMsgField.getPrice方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onUpdate

 public void onUpdate(
     MamdaTradeListener listener,
     MamaMsgField field)
 {
     listener.mTradeCache.mLastPrice.copy(field.getPrice());
     listener.mTradeCache.mLastPriceFieldState = MamdaFieldState.MODIFIED;
     listener.mTradeCache.mIsIrregular = false;
     listener.mTradeCache.mGotTradePrice = true;
 }
开发者ID:jacobraj,项目名称:MAMA,代码行数:9,代码来源:MamdaTradeListener.cs

示例2: onUpdate

			public void onUpdate(MamdaOrderImbalanceListener listener, MamaMsgField field)
			{
				listener.mOrderImbalanceCache.mNearClearingPrice.copy(field.getPrice ());
                listener.mOrderImbalanceCache.mNearClearingPriceFieldState = MamdaFieldState.MODIFIED;
			}
开发者ID:jacobraj,项目名称:MAMA,代码行数:5,代码来源:MamdaOrderImbalanceListener.cs

示例3: onUpdate

			public void onUpdate(MamdaQuoteListener listener, MamaMsgField field)
			{
				listener.mQuoteCache.mAskLow.copy(field.getPrice());
                listener.mQuoteCache.mAskLowFieldState = MamdaFieldState.MODIFIED;
			}
开发者ID:jacobraj,项目名称:MAMA,代码行数:5,代码来源:MamdaQuoteListener.cs

示例4: onUpdate

 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mLuldLowLimit.copy(field.getPrice());
     listener.mSecurityStatusCache.mLuldLowLimitFieldState = MamdaFieldState.MODIFIED;
     listener.mUpdated = true;
 }
开发者ID:jacobraj,项目名称:MAMA,代码行数:6,代码来源:MamdaSecurityStatusListener.cs

示例5: onUpdate

 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     MamaPrice price;
     price = field.getPrice();
     if (listener.mAuctionCache.mUncrossPrice.getValue() != price.getValue())
     {
         listener.mAuctionCache.mUncrossPrice.copy(price);
         listener.mAuctionCache.mUncrossPriceFieldState = MamdaFieldState.MODIFIED;
     }
 }
开发者ID:OpenMAMA,项目名称:OpenMAMA,代码行数:10,代码来源:MamdaAuctionListener.cs

示例6: displayField


//.........这里部分代码省略.........
                                Console.WriteLine(indentSpacer + "}");
                            }
                        }
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_STRING:
                        logMessage += field.getString();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_BOOL:
                        if (m_quietness < 1)
                            logMessage += field.getBool().ToString();
                        else
                            logMessage += field.getBool();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_CHAR:
                        if (m_quietness < 1)
                            logMessage += field.getChar().ToString();
                        else
                            logMessage += field.getChar();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_I8:
                        if (m_quietness < 1)
                            logMessage += field.getI8().ToString();
                        else
                            logMessage += field.getI8();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_U8:
                        if (m_quietness < 1)
                            logMessage += field.getU8().ToString();
                        else
                            logMessage += field.getU8();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_I16:
                        if (m_quietness < 1)
                            logMessage += field.getI16().ToString();
                        else
                            logMessage += field.getI16();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_U16:
                        if (m_quietness < 1)
                            logMessage += field.getU16().ToString();
                        else
                            logMessage += field.getU16();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_I32:
                        if (m_quietness < 1)
                            logMessage += field.getI32().ToString();
                        else
                            logMessage += field.getI32();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_U32:
                        if (m_quietness < 1)
                            logMessage += field.getU32().ToString();
                        else
                            logMessage += field.getU32();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_I64:
                        if (m_quietness < 1)
                            logMessage += field.getI64().ToString();
                        else
                            logMessage += field.getI64();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_U64:
                        if (m_quietness < 1)
                            logMessage += field.getU64().ToString();
                        else
                            logMessage += field.getU64();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_F32:
                        if (m_quietness < 1)
                            logMessage += field.getF32().ToString();
                        else
                            logMessage += field.getF32();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_F64:
                        if (m_quietness < 1)
                            logMessage += field.getF64().ToString();
                        else
                            logMessage += field.getF64();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_TIME:
                        if (m_quietness < 1)
                            logMessage += field.getDateTime().ToString();
                        else
                            logMessage += field.getDateTime();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_PRICE:
                        if (m_quietness < 1)
                            logMessage += field.getPrice().getAsString();
                        else
                            logMessage += field.getPrice();
                        break;

                    default:

                        logMessage += field.getAsString();
                        break;
                }

                Console.WriteLine(logMessage);
            }
开发者ID:varauder,项目名称:OpenMAMA,代码行数:101,代码来源:MamaListenCS.cs


注:本文中的Wombat.MamaMsgField.getPrice方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。