Exemple #1
0
        public string DoCommand(Transfer transfer)
        {
            GetAuthor();

            if (GetName())
            {
                GetRef();

                Song song = new Song(author, name, reference);

                string transferData = TransferData.ConvertToXML(new TransferData(song, new Command("add")));

                return(transfer.PostRequest(transferData).TrimEnd('\0'));
            }

            return("Incorrect data");
        }