MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / readSharedNotebookRecipientSettings

Function readSharedNotebookRecipientSettings

qevercloud/generated/types.cpp:4990–5022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4988}
4989
4990void readSharedNotebookRecipientSettings(ThriftBinaryBufferReader& r, SharedNotebookRecipientSettings& s) {
4991 QString fname;
4992 ThriftFieldType::type fieldType;
4993 qint16 fieldId;
4994 r.readStructBegin(fname);
4995 while(true) {
4996 r.readFieldBegin(fname, fieldType, fieldId);
4997 if(fieldType == ThriftFieldType::T_STOP) break;
4998 if(fieldId == 1) {
4999 if(fieldType == ThriftFieldType::T_BOOL) {
5000 bool v;
5001 r.readBool(v);
5002 s.reminderNotifyEmail = v;
5003 } else {
5004 r.skip(fieldType);
5005 }
5006 } else
5007 if(fieldId == 2) {
5008 if(fieldType == ThriftFieldType::T_BOOL) {
5009 bool v;
5010 r.readBool(v);
5011 s.reminderNotifyInApp = v;
5012 } else {
5013 r.skip(fieldType);
5014 }
5015 } else
5016 {
5017 r.skip(fieldType);
5018 }
5019 r.readFieldEnd();
5020 }
5021 r.readStructEnd();
5022}
5023
5024void writeSharedNotebook(ThriftBinaryBufferWriter& w, const SharedNotebook& s) {
5025 w.writeStructBegin("SharedNotebook");

Callers 1

readSharedNotebookFunction · 0.85

Calls 6

readStructBeginMethod · 0.80
readFieldBeginMethod · 0.80
readBoolMethod · 0.80
skipMethod · 0.80
readFieldEndMethod · 0.80
readStructEndMethod · 0.80

Tested by

no test coverage detected