Пример #1
0
        public void downloadIOSFile()
        {
            AppDownloadOBJDAO dao = new AppDownloadOBJDAO();
            AppDownloadOBJ    obj = new AppDownloadOBJ();

            obj = dao.GetAppFiles();
            Response.Redirect(obj.IOSApp);
            //itms-services://?action=download-manifest&url=https://crestron.sit.nyp.edu.sg/nypIprojectionIOSDownload/manifest.xml
            //This is the url to download IOS App
        }
Пример #2
0
        public ActionResult OpenPWALink()
        {
            AppDownloadOBJDAO dao = new AppDownloadOBJDAO();
            AppDownloadOBJ    obj = new AppDownloadOBJ();

            obj = dao.GetAppFiles();
            return(Redirect(obj.PWALink));
            //https://crestron.sit.nyp.edu.sg/nypiprojection/
            //This is the url for the pwa
        }
Пример #3
0
        public void downloadAndroidFile()
        {
            AppDownloadOBJDAO dao = new AppDownloadOBJDAO();
            AppDownloadOBJ    obj = new AppDownloadOBJ();

            obj = dao.GetAppFiles();
            byte[] bytes = obj.AndroidApp;
            Response.Clear();
            MemoryStream ms = new MemoryStream(bytes);

            Response.ContentType = "application/apk";
            Response.AddHeader("content-disposition", "attachment;filename=nypIprojectionApp-Signed.apk");
            Response.Buffer = true;
            ms.WriteTo(Response.OutputStream);
            Response.End();
        }