Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public static void SetMostRecentContentId(SueetieBlog sueetieBlog)
        {
            var provider = SueetieDataProvider.LoadProvider();

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

            provider.CreateSueetieBlog(sueetieBlog);
        }