Exemplo n.º 1
0
        public static void PushSoftware()
        {
            Software[] softwares = cpservice.GetSoftwares(AuthObj);

            //clear all the softwares entries.
            foreach (Software soft in softwares)
            {
                cpservice.DeleteSoftware(soft.Id);
            }

            string manfestUrl = "https://www.acmecorp.com/downloads/TestAppManifest.plist";  // change it to your actual manifest download url.

            //add a new entry
            cpservice.AddSoftware(AuthObj, "My iOS App", "ACME Corporations", "iOS", manfestUrl, "ManifestUrl", "1");

            cpservice.PingDevice(AuthObj, ManagedNode);
        }
Exemplo n.º 2
0
        public static void PushSoftware()
        {
            Software[] softwares = cpservice.GetSoftwares(AuthObj);

            string manfestUrl = "https://www.acmecorp.com/downloads/testAppManifest.plist";  // change this url to actual app manifest download url.


            if (softwares.Length == 0)
            {
                //add it first time
                cpservice.AddSoftware(AuthObj, "Test App", "Acme Corp", "iOS", manfestUrl, "ManifestUrl", "1");
            }
            else
            {
                foreach (Software soft in softwares)
                {
                    cpservice.UpdateSoftware(AuthObj, soft.Id, soft.Name, soft.Publisher, soft.OS, soft.PkgUrl, soft.PkgType, "1");
                    break;
                }
            }

            cpservice.PingDevice(AuthObj, managedGroup);
        }