public Service(string name, string description, string provider, string providerIcon,
                       List <string> inputs, List <string> outputs, JsonOauth oauth, string resourceUrl)
        {
            this.RvtEntity              = null;
            this.Name                   = name;
            this.Description            = description;
            this.Inputs                 = inputs;
            this.Outputs                = outputs;
            this.Url                    = resourceUrl;
            this.Provider               = new Provider(provider, providerIcon, oauth);
            this.AuthorizationCode      = null;
            this.IfcExportConfiguration = null;
            this.Triggers               = new List <RevitEvntTrigger>();
            this.Result                 = null;
//         this.ResultItems = new ObservableCollection<ResultItem>();

            this.IsUpToDate = false;
            this.IsRunning  = false;
            ViewContext     = SynchronizationContext.Current;
        }
Exemplo n.º 2
0
 public Provider(string name, string icon, JsonOauth oauth)
 {
     this.RvtEntity = null;
     this.Name      = name;
     this.Icon      = icon;
     if (oauth != null)
     {
         this.RegisterUrl  = oauth.RegisterUrl;
         this.AuthorizeUrl = oauth.AuthorizationUrl;
         this.TokenUrl     = oauth.TokenUrl;
     }
     else
     {
         this.RegisterUrl  = "";
         this.AuthorizeUrl = "";
         this.TokenUrl     = "";
     }
     this.ClientId     = "";
     this.ClientSecret = "";
     IsUpToDate        = false;
 }