Exemplo n.º 1
0
        public CallHandler ProfilesEx()
        {
            try
            {
                var _сallHandler = new CallHandler();

                foreach (var call in callHandler.ActiveCalls)
                {
                    var newCall = new CallStatus();
                    fillCallStatus(call, newCall);
                    _сallHandler.ActiveCalls.Add(newCall);
                }

                foreach (var profile in callHandler.Profiles)
                {
                    var newProfile = new UserProfileStatus();
                    fillProfiles(profile, newProfile);
                    _сallHandler.Profiles.Add(newProfile);
                }

                fillCallHandler_1(callHandler, _сallHandler);

                return(_сallHandler);
            }
            catch
            {
                return(null);
            }
        }
Exemplo n.º 2
0
 void fillCallHandler_2(MyPhonePlugins.IExtensionInfo source, CallHandler target)
 {
     target.FirstName       = source.FirstName;
     target.LastName        = source.LastName;
     target.MakeCallTimeout = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeout");
     target.MakeCallTimeoutCtiUnsupported = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeoutCtiUnsupported");
     target.Number = source.Number;
     target.Status = ((MyPhonePlugins.MyPhoneStatus)getValueFildDynamicObjectByName(source, "Status")).ToString();
 }
Exemplo n.º 3
0
 void fillCallHandler_1(MyPhonePlugins.IMyPhoneCallHandler source, CallHandler target)
 {
     target.FirstName       = (string)getValueFildDynamicObjectByName(source, "FirstName");
     target.LastName        = (string)getValueFildDynamicObjectByName(source, "LastName");
     target.MakeCallTimeout = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeout");
     target.MakeCallTimeoutCtiUnsupported = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeoutCtiUnsupported");
     target.Number = (string)getValueFildDynamicObjectByName(source, "Number");
     target.Status = source.Status.ToString();
 }
Exemplo n.º 4
0
 public OnCallStatusChanged()
 {
     CallHandler = new CallHandler();
     CallStatus = new CallStatus();
 }
Exemplo n.º 5
0
 public OnMyPhoneStatusChanged()
 {
     CallHandler = new CallHandler();
 }
Exemplo n.º 6
0
 public ProfileExtendedStatusChanged()
 {
     CallHandler = new CallHandler();
 }
Exemplo n.º 7
0
 public CurrentProfileChanged()
 {
     CallHandler = new CallHandler();
 }