/// <summary> /// カルーセルテンプレート追加 /// </summary> /// <param name="altText">テキスト</param> /// <param name="templateActionFactoryService">アクション作成用クラス</param> public MessageFactoryService AddCarouselTemplateMessage( TemplateCarouselColumnFactoryService templateCarouselColumnFactoryService, string altText, bool isImageAspectSquare = false, bool isImageSizeCover = true ) { Trace.TraceInformation("Start"); if (!this.RegulateMessageArray()) { Trace.TraceWarning("Regulate Message Array is False"); Trace.TraceInformation("End"); return(this); } MessageBase templateMessage = new TemplateMessage() { altText = altText, template = new CarouselTemplate() { columns = templateCarouselColumnFactoryService.Columns, imageAspectRatio = isImageAspectSquare ? "square" : "rectangle", imageSize = isImageSizeCover ? "cover" : "contain" } }; this.Messages[this.Messages.Length - 1] = templateMessage; Trace.TraceInformation("End"); return(this); }
/// <summary> /// カラム作成 /// </summary> public static TemplateCarouselColumnFactoryService CreateColumn() { Trace.TraceInformation("Start"); TemplateCarouselColumnFactoryService templateCarouselColumnFactoryService = new TemplateCarouselColumnFactoryService(); Trace.TraceInformation("End"); return(templateCarouselColumnFactoryService); }