Professional Documents
Culture Documents
All Screen Url
All Screen Url
OsType)
{
string authApiUrl = _config["UrlSetting:authApiUrl"];
List<AllScreenMenuModel> result = new List<AllScreenMenuModel>();
var dataFolderPath = _config["UserSetting:ZAMDataFolderPath"];
AllScreenMenuModel menu;
#region
menu = new AllScreenMenuModel()
{
Title = "Trending",
IsHorizontal = false,
SubMenu = new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Championships", ShortName
= EnumModelAllScreenShortName.Championships.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/Super/championship375X250-half.png", Size =
EnumModelAllScreenSize.Half.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.Championships.ToString(), isHitApi=false,
apiUrl="" },
new AllScreenSubMenuModel() { Title = "Marketplace", ShortName =
EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/Half/marketplace375X250-half.png", Size =
EnumModelAllScreenSize.Half.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://market.zamit.one/zamitlogin/?token=", isHitApi=false, apiUrl="" },
}
};
result.Add(menu);
#endregion
//AllScreenMenuModel menu;
menu = new AllScreenMenuModel()
{
Title = "What's New",
IsHorizontal = true,
SubMenu = new List<AllScreenSubMenuModel>()
};
if (OsType != "ios")
{
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Zamit Packages",
ShortName = EnumModelAllScreenShortName.zamitPackages.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/packages.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = "https://www.zamit.one/packages/app/?token=", isHitApi = false, apiUrl =
"" }
});
}
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Marketplace", ShortName
= EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/WhatsNew/Marketplace.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://market.zamit.one/zamitlogin/?token=", isHitApi=false, apiUrl="" },
new AllScreenSubMenuModel() { Title = "Watch Zamit Supers",
ShortName = EnumModelAllScreenShortName.LiveStream.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/Small/WatchZamitSupers250X250-Small.png",
Size = EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink =
false, Link = "https://www.youtube.com/watch?v=1EON1sC6z9w", isHitApi = false,
apiUrl = "" },
if (OsType != "ios")
{
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "News", ShortName =
EnumModelAllScreenShortName.News.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/NewsUpdates/news.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = false, IsExternalLink = false,
Link = EnumModelAllScreenShortName.News.ToString(), isHitApi=false, apiUrl="" },
});
}
else
{
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "News", ShortName =
EnumModelAllScreenShortName.News.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/NewsUpdates/news.png", Size =
EnumModelAllScreenSize.Medium.ToString(), IsNewTag = false, IsExternalLink = false,
Link = EnumModelAllScreenShortName.News.ToString(), isHitApi=false, apiUrl="" },
});
}
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Events", ShortName =
EnumModelAllScreenShortName.Events.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/NewsUpdates/events.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = false, IsExternalLink = false,
Link = EnumModelAllScreenShortName.Events.ToString(), isHitApi=false, apiUrl="" },
});
result.Add(menu);
return result;
}
private List<AllScreenMenuModel>
GetAllScreenMenuOtherRoleModelCached(string OsType)
{
string authApiUrl = _config["UrlSetting:authApiUrl"];
List<AllScreenMenuModel> result = new List<AllScreenMenuModel>();
var dataFolderPath = _config["UserSetting:ZAMDataFolderPath"];
AllScreenMenuModel menu;
#region
menu = new AllScreenMenuModel()
{
Title = "Trending",
IsHorizontal = false,
SubMenu = new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Championships", ShortName
= EnumModelAllScreenShortName.Championships.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/Super/championship375X250-half.png", Size =
EnumModelAllScreenSize.Half.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.Championships.ToString(), isHitApi=false,
apiUrl="" },
new AllScreenSubMenuModel() { Title = "Marketplace", ShortName =
EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/Half/marketplace375X250-half.png", Size =
EnumModelAllScreenSize.Half.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://market.zamit.one/zamitlogin/?token=", isHitApi=false, apiUrl="" },
}
};
result.Add(menu);
#endregion
// AllScreenMenuModel menu;
menu = new AllScreenMenuModel()
{
Title = "What's New",
IsHorizontal = true,
SubMenu = new List<AllScreenSubMenuModel>()
};
if (OsType != "ios")
{
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Zamit Packages",
ShortName = EnumModelAllScreenShortName.zamitPackages.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/packages.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = "https://www.zamit.one/packages/app/?token=", NotAllowed = false,
PopupMessage = "You must be a student to access this feature." , isHitApi=false,
apiUrl=""},
});
}
menu.SubMenu.AddRange(new List<AllScreenSubMenuModel>() {
new AllScreenSubMenuModel() { Title = "Marketplace", ShortName
= EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/WhatsNew/Marketplace.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://market.zamit.one/zamitlogin/?token=" , isHitApi=false, apiUrl=""},
new AllScreenSubMenuModel() { Title = "Watch Zamit Supers",
ShortName = EnumModelAllScreenShortName.LiveStream.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/Small/WatchZamitSupers250X250-Small.png",
Size = EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink =
false, Link = "https://www.youtube.com/watch?v=1EON1sC6z9w", isHitApi = false,
apiUrl = "" },
new AllScreenSubMenuModel() { Title = "Championships",
ShortName = EnumModelAllScreenShortName.Championships.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/Championship.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.Championships.ToString(), NotAllowed = false,
PopupMessage = "You must be a student to access this feature.", isHitApi=false,
apiUrl="" },
new AllScreenSubMenuModel() { Title = "Admissions", ShortName =
EnumModelAllScreenShortName.AdmissionApplication.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/Students/AdmissionApplication.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.AdmissionApplication.ToString() ,
isHitApi=false, apiUrl=""},
//new AllScreenSubMenuModel() { Title = "Book your slot",
ShortName = EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/Cowin-S.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://selfregistration.cowin.gov.in/?token=", isHitApi=true,
apiUrl=authApiUrl + "api/v1/ControlPanel/OnCowinClick" },
new AllScreenSubMenuModel() { Title = "Webinars", ShortName =
EnumModelAllScreenShortName.Webinars.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/WhatsNew/Webinars.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.Webinars.ToString(), NotAllowed = false,
PopupMessage = "You must be a student to access this feature." , isHitApi=false,
apiUrl=""},
new AllScreenSubMenuModel() { Title = "ZQ", ShortName =
EnumModelAllScreenShortName.ZQ.ToString(), ImageUrl = dataFolderPath +
"Content/AllScreenApp/WhatsNew/ZQ.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = "https://www.zamit.one/zamitQuotient/app/?token=", NotAllowed = false,
PopupMessage = "You must be a student to access this feature.", isHitApi=false,
apiUrl="" },
new AllScreenSubMenuModel() { Title = "School Voting",
ShortName = EnumModelAllScreenShortName.SchoolVoting.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/SchoolVote.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = false,
Link = EnumModelAllScreenShortName.SchoolVoting.ToString(), NotAllowed = false,
PopupMessage = "You must be a student to access this feature.", isHitApi=false,
apiUrl="" },
//new AllScreenSubMenuModel() { Title = "Zamit Conclave",
ShortName = EnumModelAllScreenShortName.SchoolsConclave.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/SchoolsConclave.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://zamit.one/conclave/?token=" , isHitApi=false, apiUrl=""},
//new AllScreenSubMenuModel() { Title = "Marketplace",
ShortName = EnumModelAllScreenShortName.Marketplace.ToString(), ImageUrl =
dataFolderPath + "Content/AllScreenApp/WhatsNew/Marketplace.png", Size =
EnumModelAllScreenSize.Small.ToString(), IsNewTag = true, IsExternalLink = true,
Link = "https://market.zamit.one/zamitlogin/?token=", NotAllowed = false,
PopupMessage = "You must be a student to access this feature.", isHitApi=false,
apiUrl="" },
});
result.Add(menu);
return result;
}