コード例 #1
0
        internal static SimMailboxNumber ConvertSimMailboxNumberStruct(SimMailboxNumberStruct mbStruct)
        {
            SimMailboxNumber mbNumber = new SimMailboxNumber();

            if (mbStruct.IsCphs == 1)
            {
                mbNumber.IsCphs = true;
            }

            else if (mbStruct.IsCphs == 0)
            {
                mbNumber.IsCphs = false;
            }

            mbNumber.RecIndex       = mbStruct.RecIndex;
            mbNumber.ProfileNumber  = mbStruct.ProfileNum;
            mbNumber.MbType         = mbStruct.MbType;
            mbNumber.AlphaMaxLength = mbStruct.AlphaMaxLen;
            mbNumber.AlphaId        = mbStruct.AlphaId;
            mbNumber.Ton            = mbStruct.Ton;
            mbNumber.Npi            = mbStruct.Npi;
            mbNumber.Number         = mbStruct.Number;
            mbNumber.CcId           = mbStruct.CcId;
            mbNumber.Ext1Id         = mbStruct.Ext1Id;
            return(mbNumber);
        }
コード例 #2
0
        internal static SimMailboxNumberStruct ConvertSimMailboxNumber(SimMailboxNumber mbNumber)
        {
            SimMailboxNumberStruct mbStruct = new SimMailboxNumberStruct();

            if (mbNumber.IsCphs)
            {
                mbStruct.IsCphs = 1;
            }

            else
            {
                mbStruct.IsCphs = 0;
            }

            mbStruct.RecIndex    = mbNumber.RecIndex;
            mbStruct.ProfileNum  = mbNumber.ProfileNumber;
            mbStruct.MbType      = mbNumber.MbType;
            mbStruct.AlphaMaxLen = mbNumber.AlphaMaxLength;
            mbStruct.AlphaId     = mbNumber.AlphaId;
            mbStruct.Ton         = mbNumber.Ton;
            mbStruct.Npi         = mbNumber.Npi;
            mbStruct.Number      = mbNumber.Number;
            mbStruct.CcId        = mbNumber.CcId;
            mbStruct.Ext1Id      = mbNumber.Ext1Id;
            return(mbStruct);
        }