Exemplo n.º 1
0
        private static void InServer(string pas, UInt64 phon)
        {
            ApIServercs apI = new ApIServercs();

            try
            {
                Console.WriteLine(apI.InApi(new Model.InApiRequist
                {
                    password = pas,
                    phone    = phon,
                }));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Exemplo n.º 2
0
        private static void NewUser(string name, string pas, string sur, UInt64 phon)
        {
            ApIServercs apI = new ApIServercs();

            try
            {
                Console.WriteLine(apI.Registr(new Model.RegistrRequest_
                {
                    first_name = name,
                    password   = pas,
                    phone      = phon,
                    surname    = sur
                }));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }