Beispiel #1
0
 public PrismicContext(string endpoint, prismic.Api api, string maybeRef, prismic.DocumentLinkResolver linkResolver)
 {
     this.endpoint     = endpoint;
     this.api          = api;
     this.maybeRef     = maybeRef;
     this.linkResolver = linkResolver;
 }
Beispiel #2
0
			public SearchForm(Api api, Form form) {
				this.api = api;
				this.form = form;
				this.data = new Dictionary<String,IList<String>>();
				foreach(KeyValuePair<String,Field> entry in form.Fields) {
					if (entry.Value.DefaultValue != null) {
						IList<String> value = new List<String>();
						value.Add(entry.Value.DefaultValue);
						this.data[entry.Key] = value;
					}
				}
			}