Beispiel #1
0
        internal static SimCphsMwStruct ConvertSimCphsMw(SimCphsMw cphsMw)
        {
            SimCphsMwStruct cphsStruct = new SimCphsMwStruct();

            if (cphsMw.IsVoice1 == true)
            {
                cphsStruct.Voice1 = 1;
            }

            else
            {
                cphsStruct.Voice1 = 0;
            }

            if (cphsMw.IsVoice2 == true)
            {
                cphsStruct.Voice2 = 1;
            }

            else
            {
                cphsStruct.Voice2 = 0;
            }

            if (cphsMw.IsFax == true)
            {
                cphsStruct.Fax = 1;
            }

            else
            {
                cphsStruct.Fax = 0;
            }

            if (cphsMw.IsData == true)
            {
                cphsStruct.Data = 1;
            }

            else
            {
                cphsStruct.Data = 0;
            }

            return(cphsStruct);
        }
Beispiel #2
0
        internal static SimCphsMw ConvertSimCphsMwStruct(SimCphsMwStruct cphsStruct)
        {
            SimCphsMw cphsMw = new SimCphsMw();

            if (cphsStruct.Voice1 == 1)
            {
                cphsMw.IsVoice1 = true;
            }

            else
            {
                cphsMw.IsVoice1 = false;
            }

            if (cphsStruct.Voice2 == 1)
            {
                cphsMw.IsVoice2 = true;
            }

            else
            {
                cphsMw.IsVoice2 = false;
            }

            if (cphsStruct.Fax == 1)
            {
                cphsMw.IsFax = true;
            }

            else
            {
                cphsMw.IsFax = false;
            }

            if (cphsStruct.Data == 1)
            {
                cphsMw.IsData = true;
            }

            else
            {
                cphsMw.IsData = false;
            }

            return(cphsMw);
        }