protected override void InternalProcess(User user, Group @group, JobData jobData) { int? blogId = jobData.Data.ContainsKey("BlogId") ? int.Parse(jobData.Data["BlogId"]) : default(int?); BlogEnumerate blogEnumerate = new BlogEnumerate(@group.Id.Value, blogId); foreach (Blog blog in blogEnumerate) { var lookups = blog.ExtendedAttributes.ToLookup(attribute => attribute.Key, val => (IExtendedAttribute)val); string setting = lookups.GetString("DefaultSubscriptionSetting", "unset"); SetSubscriptionStatus(blog.ApplicationId, PublicApi.Blogs.ApplicationTypeId, setting, user.Id.Value); } }
protected override void InternalProcess(User user, Group @group, JobData jobData) { int?blogId = jobData.Data.ContainsKey("BlogId") ? int.Parse(jobData.Data["BlogId"]) : default(int?); BlogEnumerate blogEnumerate = new BlogEnumerate(@group.Id.Value, blogId); foreach (Blog blog in blogEnumerate) { var lookups = blog.ExtendedAttributes.ToLookup(attribute => attribute.Key, val => (IExtendedAttribute)val); string setting = lookups.GetString("DefaultSubscriptionSetting", "unset"); SetSubscriptionStatus(blog.ApplicationId, PublicApi.Blogs.ApplicationTypeId, setting, user.Id.Value); } }