Esempio n. 1
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as SimpleNoteConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Username != other.Username)
            {
                return(false);
            }
            if (this.Password != other.Password)
            {
                return(false);
            }
            if (this.PermanentlyDeleteNotes != other.PermanentlyDeleteNotes)
            {
                return(false);
            }
            if (this.BlankLineBelowTitle != other.BlankLineBelowTitle)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as FilesystemConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Folder != other.Folder)
            {
                return(false);
            }
            if (this.Extension != other.Extension)
            {
                return(false);
            }
            if (this.StrEncoding != other.StrEncoding)
            {
                return(false);
            }
            if (this.SearchDepth != other.SearchDepth)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as NextcloudConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Username != other.Username)
            {
                return(false);
            }
            if (this.Password != other.Password)
            {
                return(false);
            }
            if (this.Host != other.Host)
            {
                return(false);
            }
            if (this.BlankLineBelowTitle != other.BlankLineBelowTitle)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 4
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as StandardNoteConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Email != other.Email)
            {
                return(false);
            }
            if (this.Password != other.Password)
            {
                return(false);
            }
            if (this.Server != other.Server)
            {
                return(false);
            }
            if (this.RemEmptyTags != other.RemEmptyTags)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 5
0
        public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
        {
            var conn = (StandardNoteConnection)iconn;

            return(new StandardFileNote(Guid.NewGuid(), (StandardNoteConfig)cfg, conn.HConfig)
            {
                ContentVersion = CURRENT_SCHEMA, NoteCreationDate = DateTimeOffset.Now
            });
        }
Esempio n. 6
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as HeadlessConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Name != other.Name)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 7
0
        public bool IsEqual(IRemoteStorageConfiguration iother)
        {
            var other = iother as EvernoteConfig;

            if (other == null)
            {
                return(false);
            }

            if (this.Email != other.Email)
            {
                return(false);
            }
            if (this.Password != other.Password)
            {
                return(false);
            }
            if (this.UseSandbox != other.UseSandbox)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 8
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new HeadlessConnection());
 }
Esempio n. 9
0
 public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
 {
     return(new FilesystemNote(Guid.NewGuid(), (FilesystemConfig)cfg));
 }
Esempio n. 10
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new FilesystemConnection(logger, (FilesystemConfig)config));
 }
Esempio n. 11
0
        public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
        {
            var conn = (EvernoteConnection)iconn;

            return(new EvernoteNote(Guid.NewGuid(), (EvernoteConfig)cfg, conn.HConfig));
        }
Esempio n. 12
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new EvernoteConnection(_logger, proxy, (EvernoteConfig)config, hConfig));
 }
Esempio n. 13
0
 public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
 {
     return(new NextcloudNote(-1, Guid.NewGuid(), (NextcloudConfig)cfg));
 }
Esempio n. 14
0
 public abstract INote CreateEmptyNote(IRemoteStorageConnection conn, IRemoteStorageConfiguration cfg);
Esempio n. 15
0
 public abstract IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hierachicalConfig);
Esempio n. 16
0
 public override INote CreateEmptyNote(IRemoteStorageConnection conn, IRemoteStorageConfiguration cfg)
 {
     return(new HeadlessNote(Guid.NewGuid()));
 }
Esempio n. 17
0
 public RemoteStorageAccount(Guid id, IRemotePlugin plugin, IRemoteStorageConfiguration cfg)
 {
     _plugin = plugin;
     _id     = id;
     _config = cfg;
 }
Esempio n. 18
0
        public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
        {
            var conn = (SimpleNoteConnection)iconn;

            return(new SimpleNote(Guid.NewGuid().ToString("N").ToUpper(), (SimpleNoteConfig)cfg, conn.HConfig));
        }