public AdapterModelsClass SetFindMoreAlert(string type)
        {
            try
            {
                var alertModel1 = new AlertModelClass();
                if (type == "Groups")
                {
                    alertModel1 = new AlertModelClass
                    {
                        TitleHead     = MainContext.GetString(Resource.String.Lbl_Groups),
                        SubText       = MainContext.GetString(Resource.String.Lbl_FindMoreAler_TextGroups),
                        TypeAlert     = "Groups",
                        ImageDrawable = Resource.Drawable.image2,
                        IconImage     = Resource.Drawable.shareGroup,
                    };
                }
                else if (type == "Pages")
                {
                    alertModel1 = new AlertModelClass
                    {
                        TitleHead     = MainContext.GetString(Resource.String.Lbl_Pages),
                        SubText       = MainContext.GetString(Resource.String.Lbl_FindMoreAler_TextPages),
                        TypeAlert     = "Pages",
                        ImageDrawable = Resource.Drawable.image1,
                        IconImage     = Resource.Drawable.sharePage,
                    };
                }

                var addAlertJoinBox = new AdapterModelsClass
                {
                    TypeView   = PostModelType.AlertJoinBox,
                    Id         = DateTime.Now.Millisecond,
                    AlertModel = alertModel1
                };

                return(addAlertJoinBox);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
        public AdapterModelsClass PrepareGreetingAlert()
        {
            try
            {
                //afternoon_system
                var afternoonSystem = ListUtils.SettingsSiteList?.AfternoonSystem;
                if (afternoonSystem == "1")
                {
                    var    data = ListUtils.MyProfileList.FirstOrDefault();
                    string name = data != null?WoWonderTools.GetNameFinal(data) : UserDetails.Username;

                    var alertModel = new AlertModelClass();

                    var c         = Calendar.Instance;
                    var timeOfDay = c.Get(CalendarField.HourOfDay);

                    if (timeOfDay >= 0 && timeOfDay < 12)
                    {
                        alertModel = new AlertModelClass
                        {
                            TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodMorning) + ", " + name,
                            SubText       = MainContext.GetString(Resource.String.Lbl_GoodMorning_Text),
                            LinerColor    = "#ffc107",
                            ImageDrawable = Resource.Drawable.ic_post_park
                        };
                    }
                    else if (timeOfDay >= 12 && timeOfDay < 16)
                    {
                        alertModel = new AlertModelClass
                        {
                            TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodAfternoon) + ", " + name,
                            SubText       = MainContext.GetString(Resource.String.Lbl_GoodAfternoon_Text),
                            LinerColor    = "#ffc107",
                            ImageDrawable = Resource.Drawable.ic_post_desert
                        };
                    }
                    else if (timeOfDay >= 16 && timeOfDay < 21)
                    {
                        alertModel = new AlertModelClass
                        {
                            TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodEvening) + ", " + name,
                            SubText       = MainContext.GetString(Resource.String.Lbl_GoodEvening_Text),
                            LinerColor    = "#ffc107",
                            ImageDrawable = Resource.Drawable.ic_post_sea
                        };
                    }
                    else if (timeOfDay >= 21 && timeOfDay < 24)
                    {
                        alertModel = new AlertModelClass
                        {
                            TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodEvening) + ", " + name,
                            SubText       = MainContext.GetString(Resource.String.Lbl_GoodEvening_Text),
                            LinerColor    = "#ffc107",
                            ImageDrawable = Resource.Drawable.ic_post_sea
                        };
                    }

                    var alertBox = new AdapterModelsClass
                    {
                        TypeView   = PostModelType.AlertBox,
                        AlertModel = alertModel,
                        Id         = 333333333
                    };

                    return(alertBox);
                }
                return(null);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }
        public AdapterModelsClass PrepareGreetingAlert()
        {
            try
            {
                //afternoon_system
                var afternoonSystem = ListUtils.SettingsSiteList?.AfternoonSystem;
                if (afternoonSystem == "1")
                {
                    var    data = ListUtils.MyProfileList?.FirstOrDefault();
                    string name = data != null?WoWonderTools.GetNameFinal(data) : UserDetails.Username;

                    var alertModel = new AlertModelClass();

                    if ((int)Build.VERSION.SdkInt >= 24)
                    {
                        #pragma warning disable 618
                        var locale = (int)Build.VERSION.SdkInt < 25 ? MainContext?.Resources?.Configuration?.Locale : MainContext?.Resources?.Configuration?.Locales?.Get(0) ?? MainContext?.Resources?.Configuration?.Locale;
                        #pragma warning restore 618

                        var c         = Calendar.GetInstance(locale);
                        var timeOfDay = c?.Get(CalendarField.HourOfDay);

                        if (timeOfDay >= 0 && timeOfDay < 12)
                        {
                            alertModel = new AlertModelClass
                            {
                                TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodMorning) + ", " + name,
                                SubText       = MainContext.GetString(Resource.String.Lbl_GoodMorning_Text),
                                LinerColor    = "#ffc107",
                                ImageDrawable = Resource.Drawable.ic_post_park
                            };
                        }
                        else if (timeOfDay >= 12 && timeOfDay < 16)
                        {
                            alertModel = new AlertModelClass
                            {
                                TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodAfternoon) + ", " + name,
                                SubText       = MainContext.GetString(Resource.String.Lbl_GoodAfternoon_Text),
                                LinerColor    = "#ffc107",
                                ImageDrawable = Resource.Drawable.ic_post_desert
                            };
                        }
                        else if (timeOfDay >= 16 && timeOfDay < 21)
                        {
                            alertModel = new AlertModelClass
                            {
                                TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodEvening) + ", " + name,
                                SubText       = MainContext.GetString(Resource.String.Lbl_GoodEvening_Text),
                                LinerColor    = "#ffc107",
                                ImageDrawable = Resource.Drawable.ic_post_sea
                            };
                        }
                        else if (timeOfDay >= 21 && timeOfDay < 24)
                        {
                            alertModel = new AlertModelClass
                            {
                                TitleHead     = MainContext.GetString(Resource.String.Lbl_GoodEvening) + ", " + name,
                                SubText       = MainContext.GetString(Resource.String.Lbl_GoodEvening_Text),
                                LinerColor    = "#ffc107",
                                ImageDrawable = Resource.Drawable.ic_post_sea
                            };
                        }

                        var alertBox = new AdapterModelsClass
                        {
                            TypeView   = PostModelType.AlertBox,
                            AlertModel = alertModel,
                            Id         = 333333333
                        };
                        return(alertBox);
                    }
                }
                return(null !);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
                return(null !);
            }
        }