-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add create method in
CatalogSource
and PushSource
(LENS-874) (
#35)
- Loading branch information
1 parent
ed0f754
commit f2e93a2
Showing
6 changed files
with
114 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.coveo.pushapiclient; | ||
|
||
public enum SourceType implements SourceTypeInterface{ | ||
PUSH{ | ||
public String toString() { | ||
return "PUSH"; | ||
} | ||
public boolean isPushEnabled(){ return true;} | ||
|
||
@Override | ||
public boolean isStreamEnabled() { | ||
return false; | ||
} | ||
|
||
}, | ||
CATALOG{ | ||
public String toString() { | ||
return "CATALOG"; | ||
} | ||
|
||
@Override | ||
public boolean isPushEnabled() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isStreamEnabled() { | ||
return true; | ||
} | ||
}, | ||
} | ||
|
||
interface SourceTypeInterface { | ||
|
||
String toString(); | ||
boolean isPushEnabled(); | ||
boolean isStreamEnabled(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters