Example #1
0
        public static int CreateSueetieApplication(int applicationId, string appKey, string appDescription, int groupId, int appTypeId)
        {
            var sueetieApplication = new SueetieApplication
            {
                ApplicationID     = applicationId,
                ApplicationKey    = appKey,
                GroupID           = groupId,
                ApplicationTypeID = appTypeId,
                Description       = appDescription
            };

            var provider = SueetieDataProvider.LoadProvider();

            provider.CreateSueetieApplication(sueetieApplication);
            if (sueetieApplication.ApplicationTypeID == (int)SueetieApplicationType.Blog && sueetieApplication.GroupID == 0)
            {
                var sueetieBlog = new SueetieBlog
                {
                    ApplicationID = applicationId,
                    BlogTitle     = sueetieApplication.Description
                };
                SueetieBlogs.CreateSueetieBlog(sueetieBlog);
            }

            ClearApplicationListCache();
            return(applicationId);
        }
Example #2
0
        public static void SetMostRecentContentId(SueetieBlog sueetieBlog)
        {
            var provider = SueetieDataProvider.LoadProvider();

            provider.SetMostRecentContentID(sueetieBlog);
        }
Example #3
0
        public static void CreateSueetieBlog(SueetieBlog sueetieBlog)
        {
            var provider = SueetieDataProvider.LoadProvider();

            provider.CreateSueetieBlog(sueetieBlog);
        }