示例#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);
        }
        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);
        }
示例#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);
        }
示例#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);
        }
示例#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
            });
        }
示例#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);
        }
示例#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);
        }
示例#8
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new HeadlessConnection());
 }
示例#9
0
 public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
 {
     return(new FilesystemNote(Guid.NewGuid(), (FilesystemConfig)cfg));
 }
示例#10
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new FilesystemConnection(logger, (FilesystemConfig)config));
 }
示例#11
0
        public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
        {
            var conn = (EvernoteConnection)iconn;

            return(new EvernoteNote(Guid.NewGuid(), (EvernoteConfig)cfg, conn.HConfig));
        }
示例#12
0
 public override IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hConfig)
 {
     return(new EvernoteConnection(_logger, proxy, (EvernoteConfig)config, hConfig));
 }
示例#13
0
 public override INote CreateEmptyNote(IRemoteStorageConnection iconn, IRemoteStorageConfiguration cfg)
 {
     return(new NextcloudNote(-1, Guid.NewGuid(), (NextcloudConfig)cfg));
 }
示例#14
0
 public abstract INote CreateEmptyNote(IRemoteStorageConnection conn, IRemoteStorageConfiguration cfg);
示例#15
0
 public abstract IRemoteStorageConnection CreateRemoteStorageConnection(IWebProxy proxy, IRemoteStorageConfiguration config, HierachyEmulationConfig hierachicalConfig);
示例#16
0
 public override INote CreateEmptyNote(IRemoteStorageConnection conn, IRemoteStorageConfiguration cfg)
 {
     return(new HeadlessNote(Guid.NewGuid()));
 }
示例#17
0
 public RemoteStorageAccount(Guid id, IRemotePlugin plugin, IRemoteStorageConfiguration cfg)
 {
     _plugin = plugin;
     _id     = id;
     _config = cfg;
 }
示例#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));
        }