예제 #1
0
        public void UpdateInfo(ChanState info)
        {
            Extension       = info.Extension;
            AgentID         = info.AgentID;
            LoginState      = info.LoginState;
            CallState       = info.CallState;
            RecordState     = info.RecordState;
            RecordReference = info.RecordReference;
            DirectionFlag   = info.DirectionFlag;
            CallerID        = info.CallerID;
            CalledID        = info.CalledID;
            StartRecordTime = info.StartRecordTime;
            StopRecordTime  = info.StopRecordTime;
            RecordLength    = info.RecordLength;

            StrLoginState      = LoginState.ToString();
            StrCallState       = CallState.ToString();
            StrRecordState     = RecordState.ToString();
            StrDirection       = DirectionFlag.ToString();
            StrStartRecordTime = StartRecordTime.ToString("yyyy-MM-dd HH:mm:ss");
            StrStopRecordTime  = StopRecordTime.ToString("yyyy-MM-dd HH:mm:ss");
            StrRecordLength    = RecordLength.ToString();

            Info = info;
        }
예제 #2
0
파일: Leader.cs 프로젝트: gjunge/MARC4J.Net
 /// <summary>
 /// Returns a string representation of this leader.
 ///
 /// Example: 00714cam a2200205 a 4500
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(RecordLength.ToString().PadLeft(5, '0') +
            RecordStatus +
            TypeOfRecord +
            new String(ImplDefined1) +
            CharCodingScheme +
            IndicatorCount +
            SubfieldCodeLength +
            BaseAddressOfData.ToString().PadLeft(5, '0') +
            new String(ImplDefined2) +
            new String(EntryMap));
 }