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); } }
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(); }
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(); }
public OnCallStatusChanged() { CallHandler = new CallHandler(); CallStatus = new CallStatus(); }
public OnMyPhoneStatusChanged() { CallHandler = new CallHandler(); }
public ProfileExtendedStatusChanged() { CallHandler = new CallHandler(); }
public CurrentProfileChanged() { CallHandler = new CallHandler(); }