/// <summary> /// Optional. Foreground color of the pass, specified as an CSS-style RGB triple. /// </summary> /// <example>Example: <code>rgb(23, 187, 82)</code>.</example> public static PassBuilder.VisualAppearanceBuilder ForegroundColor(this PassBuilder.VisualAppearanceBuilder builder, string value) { builder.SetValue(PassBuilder.GetCaller(), value); return(builder); }
/// <summary> /// Optional. Indicates that the pass is void—for example, a one time use coupon that has been redeemed. /// </summary> /// <remarks> /// The default value is false. /// Available in iOS 7.0. /// </remarks> public static PassBuilder.ExpirationBuilder Voided(this PassBuilder.ExpirationBuilder builder, bool value) { builder.SetValue(PassBuilder.GetCaller(), value); return(builder); }
/// <summary> /// Optional. Information specific to the pass’s barcode. The system uses the first valid barcode dictionary in the array. Additional dictionaries can be added as fallbacks. /// </summary> /// <remarks> /// Available in iOS 9.0. /// </remarks> public static PassBuilder.VisualAppearanceBuilder Barcodes(this PassBuilder.VisualAppearanceBuilder builder, PassBuilder.Barcode value) { builder.AppendValue(PassBuilder.GetCaller(), value); return(builder); }
/// <summary> /// Required for boarding passes; otherwise not allowed. Type of transit. /// </summary> public static PassBuilder.StyleBuilder TransitType(this PassBuilder.StyleBuilder builder, TransitType value) { builder.SetStyleValue(PassBuilder.GetCaller(), value.ToPassKitString()); return(builder); }
/// <summary> /// Optional. Date and time when the pass expires. /// </summary> /// <remarks> /// The value must be a complete date with hours and minutes, and may optionally include seconds. /// Available in iOS 7.0. /// </remarks> public static PassBuilder.ExpirationBuilder ExpirationDate(this PassBuilder.ExpirationBuilder builder, DateTimeOffset value) { builder.SetValue(PassBuilder.GetCaller(), value); return(builder); }
public AssociatedAppBuilder(PassBuilder parent) : base(parent) { }
public void SetValue(string name, PassBuilder value) { values[name.ToCamelCase()] = value.values; }
public WebServiceBuilder(PassBuilder parent) : base(parent) { }
public PassBuilderNfcKeys(PassBuilder parent) : base(parent) { }
public StyleBuilder(string style, PassBuilder parent) : base(parent) { styleValues = parent.CreateBag(style); }
public VisualAppearanceBuilder(PassBuilder parent) : base(parent) { }
public RelevanceBuilder(PassBuilder parent) : base(parent) { }
public ExpirationBuilder(PassBuilder parent) : base(parent) { }
public CompanionAppBuilder(PassBuilder parent) : base(parent) { }
/// <summary> /// Optional for event tickets and boarding passes; otherwise not allowed. /// Identifier used to group related passes. If a grouping identifier is specified, passes with the same style, pass type identifier, and grouping identifier are displayed as a group. Otherwise, passes are grouped automatically. /// Use this to group passes that are tightly related, such as the boarding passes for different connections of the same trip. /// </summary> public static PassBuilder.VisualAppearanceBuilder GroupingIdentifier(this PassBuilder.VisualAppearanceBuilder builder, string value) { builder.SetValue(PassBuilder.GetCaller(), value); return(builder); }
protected PassBuilder(PassBuilder parent) { values = parent.values; }
/// <summary> /// Optional. Text displayed next to the logo on the pass. /// </summary> public static PassBuilder.VisualAppearanceBuilder LogoText(this PassBuilder.VisualAppearanceBuilder builder, string value) { builder.SetValue(PassBuilder.GetCaller(), value); return(builder); }
public StandardBuilder(PassBuilder parent) : base(parent) { // Required. Version of the file format. The value must be 1. SetValue("FormatVersion", 1); }