Exemplo n.º 1
0
Arquivo: Mobile.cs Projeto: HLPK/Tasks
        private string GetDescription(BatteryBase battery)
        {
            var descrioptionBuilder = new StringBuilder();

            descrioptionBuilder.Append($"Battery: {battery.ToString()}");
            return(descrioptionBuilder.ToString());
        }
Exemplo n.º 2
0
        public string GetDescription()
        {
            var descriptionBuilder = new StringBuilder();

            descriptionBuilder.AppendLine($"Aerial Type: {AerialBase.ToString()}");
            descriptionBuilder.AppendLine($"Battery Type: {BatteryBase.ToString()}");
            descriptionBuilder.AppendLine($"Dynamic Type: {DynamicBase.ToString()}");
            descriptionBuilder.AppendLine($"Keyboard Type: {KeyboardBase.ToString()}");
            descriptionBuilder.AppendLine($"Microphone Type: {MicrophoneBase.ToString()}");
            descriptionBuilder.AppendLine($"Screen Type: {ScreenBase.ToString()}");
            descriptionBuilder.AppendLine($"SimCard Type: {SimCardBase.ToString()}");
            return(descriptionBuilder.ToString());
        }