-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZCS-12421: Adding tags for instance and series in appointments #1418
base: develop
Are you sure you want to change the base?
Conversation
@@ -18,6 +18,7 @@ | |||
|
|||
import org.dom4j.Namespace; | |||
import org.dom4j.QName; | |||
import org.python.antlr.ast.Str; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this import required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this is not required, I have removed it.
@@ -856,6 +857,10 @@ private MailConstants() { | |||
// messages | |||
public static final String E_MIMEPART = "mp"; | |||
public static final String E_SUBJECT = "su"; | |||
|
|||
public static final String E_OP = "op"; | |||
public static final String E_TN = "tn"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we be more descriptive with variable name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, edited and used more descriptive variable name
setRecurrence(recurrence); | ||
setRecurId(recurrenceId); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overload the existing constructor rather than duplicating the entire constructor code
@@ -357,6 +416,9 @@ public static Metadata encodeMetadata(Invite inv) { | |||
} | |||
|
|||
meta.put(FN_NAME, inv.getName()); | |||
meta.put(FN_OPERATION_TYPE, inv.getOperationType()); | |||
meta.put(FN_TAG_COLOUR, inv.getTagColour()); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above line - meta.put(FN_NAME, inv.getName()); has also extra space. Still shall I remove the space. Please confirm.
@@ -579,6 +641,9 @@ public static Invite decodeMetadata(int mailboxId, Metadata meta, CalendarItem c | |||
String name = meta.get(FN_NAME, ""); | |||
String loc = meta.get(FN_LOCATION, null); | |||
|
|||
String opType = meta.get(FN_OPERATION_TYPE,null); | |||
String tagCol = meta.get(FN_TAG_COLOUR,null); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space, check in other part of code changes as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I have modified it.
@@ -1084,6 +1084,8 @@ private static void parseInviteElementCommon(Account account, MailItem.Type type | |||
} | |||
|
|||
String name = element.getAttribute(MailConstants.A_NAME, ""); | |||
String operationType = element.getAttribute(MailConstants.E_OP,""); | |||
String tagColour = element.getAttribute(MailConstants.E_TN,""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format like
element.getAttribute(MailConstants.E_OP, "");
for both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, modified it.
0a1c7b9
to
c2157a5
Compare
c2157a5
to
257db13
Compare
No description provided.