public override void CallToTheFriends(string friendName, IPhysicalProtocol protocol) { if (CheckTheEnableDevice()) { protocol = new GMSProtocol(); protocol.ConnectionToTheNetwork(this); protocol.DisableFromTheNetwork(this); } else { Console.WriteLine("[Ощибка]: Телефон выключен!"); } }
public abstract void CallToTheFriends(string friendName, IPhysicalProtocol protocol);